Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css picketInput更改占位符R_Css_R_Shiny_Placeholder_Shinywidgets - Fatal编程技术网

Css picketInput更改占位符R

Css picketInput更改占位符R,css,r,shiny,placeholder,shinywidgets,Css,R,Shiny,Placeholder,Shinywidgets,shinyWidgets包中的pickerInput具有占位符标题未选择任何内容 如何将其替换为例如,选择一个选项?我更喜欢使用css或pickerInput选项的解决方案,如果可能的话,避免使用shinyjs library(shiny) library(shinyWidgets) ui <- fluidPage( tags$head( tags$style(HTML(" ")) ), pickerInput( inputId = "mtcIn

shinyWidgets
包中的
pickerInput
具有占位符标题
未选择任何内容

如何将其替换为
例如,选择一个选项
?我更喜欢使用css或
pickerInput
选项的解决方案,如果可能的话,避免使用
shinyjs

library(shiny)
library(shinyWidgets)

ui <- fluidPage(

  tags$head(
    tags$style(HTML("

    "))
  ),

  pickerInput(
    inputId = "mtcInputIndicateur", 
    label = "Select values", 
    choices = paste("choice", 1:10),
    options = list(`live-search` = TRUE),
    multiple = TRUE
  )
)



server <- function(input, output){
}

shinyApp(ui, server)
库(闪亮)
图书馆(shinyWidgets)

ui刚刚找到答案,使用
选项中的参数
title

library(shiny)
library(shinyWidgets)

ui <- fluidPage(

  pickerInput(
    inputId = "mtcInputIndicateur", 
    label = "Select values", 
    choices = paste("choice", 1:10),
    options = list(`live-search` = TRUE, title = "Pick a choice"),
    multiple = TRUE
  )
)



server <- function(input, output){
}

shinyApp(ui, server)
库(闪亮)
图书馆(shinyWidgets)
用户界面