如何添加指向“浏览”按钮闪亮应用程序的链接

时间:2020-01-23 02:36:40

标签: css shiny text-alignment

我想知道如何在闪亮的应用程序的“浏览”按钮中添加“示例文件”,因此其对齐方式很好吗? 我找到了使用标签$ ....的示例,但该链接未正确对齐浏览器按钮。我的结果:

enter image description here

我想要这样:

enter image description here

我的代码:

tags$a(href ="data/INPUT.txt",
       target="_blank",
       "EXAMPLE_test"), 

fileInput(inputId  = "InputFile",
          label    = "Choose File",
          multiple = TRUE,
          accept   = c("text",
                       "text/comma-separated-values,text/plain",
                       ".txt") )

感谢您的帮助。 谢谢。

1 个答案:

答案 0 :(得分:2)

我希望这是您要实现的目标。

ui <- shinyUI(fluidPage(
  fileInput(inputId  = "InputFile",
            label    = tags$a(href = "data/INPUT.txt",
                              target = "_blank",
                              "EXAMPLE_test"),
            multiple = TRUE,
            accept   = c("text",
                         "text/comma-separated-values,text/plain",
                         ".txt") )
)
)
相关问题