How to style an single individual selectInput menu in R Shiny?

后端 未结 3 724
独厮守ぢ
独厮守ぢ 2020-12-31 14:50

Can you apply css style to a single selectInput menu?

I\'ve found code in other articles that deal with styling selectInput menu\'s but the outcome affects all of t

3条回答
  •  耶瑟儿~
    2020-12-31 15:13

    I found the answer myself. Combination of determination, lots of hours on google and Stackoverflow etc with some info I found created by Dean Atali I believe, but this seems to do it:

      tags$head(tags$style(HTML('.selectize-input {white-space: nowrap}
        #choice+ div>.selectize-dropdown{width: 660px !important}
        #choices+ div>.selectize-dropdown{width: 300px !important}')))
    

提交回复
热议问题