checkboxes_allon_alloff_ui: A group of checkboxes with all-on/all-off control buttons.

View source: R/checkboxes-allon-alloff.R

checkboxes_allon_alloff_uiR Documentation

A group of checkboxes with all-on/all-off control buttons.

Description

The UI component of the Shiny module for creating a group of pretty checkboxes with an all-on and an all-off control buttons.

Usage

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%")

Arguments

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''.

Value

Must use it together with its counterpart server.

See Also

checkboxes_allon_alloff_server for the server.

Examples

inst/examples/ex-checkboxes-allon-alloff.R

cabaceo/shinymod documentation built on Sept. 8, 2023, 12:23 p.m.