Dialog - Boolean Input (Section) — SkBee
Addon: SkBee · Category: Section · Since: 3.16.0
Syntax
add boolean inputDescription
A simple checkbox input to be used in an `inputs` section of a dialog. See [**Input Control on SkBee wiki**](https://github.com/ShaneBeee/SkBee/wiki/Dialogs#input-control)and [**Input Control on McWiki**](https://minecraft.wiki/w/Dialog#Input_control_format) for further info. **Entries**: - `key` = String identifier of value used when submitting data, must be a valid template argument (letters, digits and _)("id" is reserved). - `label` = A string/text component to be displayed to the left of the input. - `initial` = The initial boolean value of the checkbox. Defaults to false (unchecked). - `on_true` = The string value to send when true. Defaults to "true". - `on_false` = The string value to send when false. Defaults to "false".
Examples
add boolean input:
key: "some_bool_key"
label: "Want some cheese?"
initial: true
on_true: "true was selected"
on_false: "false was selected"