您好我正在使用Shiny Dashboard。下面的文章帮助我在fileInput
中添加了一个闪亮的图标。
Adding/removing icon in downloadButton() and fileInput()
我希望是否有一种方法可以将图标添加到selectInput以及闪亮。我想在侧边栏菜单中保持图标的一致性。
我尝试使用下面的代码,但它没有达到目的
sidebarItem(selectInput("vars", "Select a variable:",choices=c("Users",
"New_Users"), multiple=F), icon = icon("paw"), tabName = "")
我真的希望有一个解决方案。
非常感谢提前!!
使用相同的方法,将标签设置为带有图标和字符串的列表。
sidebarItem(selectInput("vars", list(icon("paw"),"Select a variable:"),choices=c("Users",
"New_Users"), multiple=F))