Bog*_*aso 3 r shiny shiny-server
在 Shiny 中,我们有downloadButton()和fileInput()按钮分别用于下载和上传数据。
然而碰巧的是,downloadButton()有下载图标,但fileInput()没有附加图标。
在我的 Shiny 应用程序中,我有两个按钮。然而,由于其中一个附加了图标,它在我的应用程序中带来了某种视觉上的不一致。
所以,我要么想从 中删除这样的图标downloadButton(),要么添加一些上传按钮fileInput()以带来一致性。
但是,似乎没有任何直接的方法来执行它们中的任何一个。
因此,如果有任何方法可以:
要么删除图标,downloadButton()要么附加一些上传
图标fileInput()
任何指针都受到高度赞赏。
谢谢,
要将图标添加到 fileInput(),请将列表添加到 buttonLabel。例如
shinyApp(
fluidPage(
fileInput("myFileInput",label="Test",buttonLabel=list(icon("folder"),"TestyMcTestFace"))
),
function(input, output, session){
}
)
Run Code Online (Sandbox Code Playgroud)