Dialog - Number Range Input (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.16.0

Syntax

add number range input

Description

A number slider 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_format` = A translation key to be used for building label (first argument is contents of label field, second argument is current value). Defaults to "options.generic_value". - `width` = Integer value between 1 and 1024 — The width of the input. Defaults to 200. [Optional] - `start` = The minimum number of the slider. - `end` = The maximum number of the slider. - `step` = Step size (If present, only values of initial+<anyinteger>*step will be allowed. If absent, any value from the range is allowed). [Optional] - `initial` = The initial increment value of the slider. Defaults to the middle of the range. [Optional]

Examples

add number range input:
	key: "some_key"
	label: "Slide for Health"
	width: 300
	start: 0
	end: 20
	step: 1
	initial: 20

View source