r - customize shiny checkboxinput font using css, error unused argument (style = " -
i trying change font size , color of checkboxinput using inline css.
library(shiny) shinyui( navbarpage("first app", tabpanel("a", sidebarlayout(sidebarpanel(h5("sidebar") ), mainpanel(checkboxinput("add", "add" , style = "font-weight: 500; color: #4d3a7d;" )) )), tabpanel("b") ) )
but error unused argument (style = "font-weight: 500; color: #4d3a7d;")
how can fix this?
you should try :
library(shiny) shinyui( navbarpage("first app", tabpanel("a", sidebarlayout(sidebarpanel(h5("sidebar") ), mainpanel(checkboxinput("add", "add" , style = "font-weight: 500; color: #4d3a7d;" )) )), tabpanel("b"), tags$head(tags$style("#add{color: #4d3a7d; font-weight: 500; }" ))))
Comments
Post a Comment