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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -