【发布时间】:2019-11-30 01:03:06
【问题描述】:
无法将渐变颜色添加到我的文件输入进度条。
现在,我可以使用此处提供的代码将进度条的颜色从常规的蓝色更改为其他颜色。 Colour of progress bar in fileInput -- Shiny
ui <- fluidPage(
tags$head(tags$style(".progress-bar{background-color:#3c763d;}")),
fileInput(inputId = "fileInp", label = "Input file:",multiple = FALSE,
accept = c(
"text/csv",
"text/comma-separated-values,text/plain",
".csv"))
)
server <- function(input, output){
}
shinyApp(ui=ui, server=server)
##also tried replacing background color with code from https://www.w3schools.com/css/css3_gradients.asp but no luck :
background-color: linear-gradient(to right, red , yellow);
但是,我想要的是像这样的渐变https://imgur.com/XdFBUIt
【问题讨论】:
标签: r shiny rstudio shiny-server rstudio-server