Dialog - Single Option Input (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.16.0

Syntax

add single option input

Description

A preset option selection 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. - `label_visible` = Controls if the label is visible. Defaults to true. - `width` = Integer value between 1 and 1024 — The width of the input. Defaults to 200. - `options` = A section for adding options. See [**options**](https://github.com/ShaneBeee/SkBee/wiki/Dialogs#options) for more info.

Examples

add single option input:
	key: "le_key"
	label: "Choose favorite animal"
	options:
		add options entry:
			display: "cat"
		add options entry:
			display: "dog"
		add options entry:
			display: "turtle"
		add options entry:
			display: "spider"

View source