Dialog - Text Input (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.16.0

Syntax

add text input

Description

A text 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. - `width` = Integer value between 1 and 1024 — The width of the input. Defaults to 200. [Optional] - `label_visible` = Controls if the label is visible. Defaults to true. [Optional] - `initial` = The initial string value of the text input. [Optional] - `max_length` = Maximum length of input. Defaults to 32. [Optional] - The next two represent `multiline` and if used, must be used together. If present, allows users to input multiple lines, optional object with entries: - `multiline_max_lines` = Positive integer. If present, limits maximum lines. - `multiline_height` = Integer value between 1 and 512 — Height of input.

Examples

add text input:
    key: "name_input"
    label: "Input your name to confirm:"
    initial: "name"

View source