New Checkbox Group (Expression) — DiSky

Addon: DiSky · Category: Expression · Since: 4.28.0

Syntax

new checkbox group with [the] id %string% [[and] [with] unique id %-integer%] [[and] [with] min [value] %-integer%] [[and] [with] max [value] %-integer%]

Description

Create a new checkbox group component builder. A checkbox group is a component that allows users to select multiple options from a list of checkboxes. It can be used in modals only, as a child of a label.

Examples

set {_checks} to new checkbox group with id "test"
add (new checkbox option with value "option1" named "Option 1") to options of {_checks}
add (new default checkbox option with value "option2" named "Option 2") to options of {_checks}
set {_label} to new label "Choose an option:" with {_checks}
add {_label} to rows of {_modal}

View source