View source: R/checkboxes-allon-alloff.R
checkboxes_allon_alloff_ui | R Documentation |
The UI component of the Shiny module for creating a group of pretty checkboxes with an all-on and an all-off control buttons.
checkboxes_allon_alloff_ui('id', align_onoff_bttns = 'horizontal',
hbttns_height = "100%", hbttns_width = "100%")
checkboxes_allon_alloff_ui('id', align_onoff_bttns = 'vertical',
line_breaks_bw_cboxes_n_vbttns = 1, vbttns_height = "100%",
vbttns_width = "100%")
id |
String. The input slot that will be used to access the value. |
bttn_size |
String. Size of the button : 'xs', 'sm', 'md', 'lg'. |
align_onoff_bttns |
String. Possible values are 'vertical' (default) or 'horizontal'. If 'vertical', the all-on and all-off buttons are stacked vertically. Otherwise, they are placed horizontally side by side. |
line_breaks_bw_cboxes_n_vbttn1, line_breaks_bw_vbttn1_n_vbttn2 |
Integer. Number of line breaks between the checkboxes group and the 1st vertical button, and between the 1st and 2nd vertically stacked buttons. Only used when ‘align_onoff_bttns = ’vertical''. |
hbttns_height, hbttns_width |
The total amount of height and width to use for the entire column of the horizontally aligned buttons group. Their values will be passed into 'fillRow()'. Only used when ‘align_onoff_bttns = ’horizontal''. |
Must use it together with its counterpart server.
checkboxes_allon_alloff_server
for the server.
inst/examples/ex-checkboxes-allon-alloff.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.