Checkbars will expand to fill the width of their parent element.
checkbarInput( .style %>% background("secondary"), id = NULL, choices = c("Choice 1", "Choice 2", "Choice 3") )
If you want to adjust the width you can use the width()
utility.
checkbarInput( .style %>% background("secondary") %>% width(50), # <- id = NULL, choices = c("Choice 1", "Choice 2", "Choice 3") )
Like other inputs, checkbar inputs apply modified background styles
checkbarInput( .style %>% background("info"), id = NULL, choices = c("Choice 1", "Choice 2") )
Use a formGroup()
to add a label or help text to checkbar input.
formGroup( label = "Label", # <- checkbarInput( .style %>% border("dark") %>% font("light"), id = NULL, choices = c("Choice 1", "Choice 2") ), help = "Help text about the input" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.