New Model Label (Expression) — DiSky

Addon: DiSky · Category: Expression · Since: 4.25.0

Syntax

[a] [new] label [with] [the] [(label|title)] %string% [and] with [the] [(child|component)] %object% [[and] with [the] description %-string%]

Description

Create a new label component for modals. Labels are components that can be used to display text and a child component (like a text input or a select menu or an attachment input) in a modal.

Examples

# Create a short text input
set {_input} to new short text input with id "title"
set placeholder of {_input} to "Enter a brief title..."
set minimum range of {_input} to 3
set maximum range of {_input} to 50
set required state of {_input} to true

# Wrap in a label
set {_label} to new label "Feedback Title" with {_input}

# Then adds it to the modal
add {_label} to rows of {_modal}
set {_att} to new attachment upload builder with id "test" min size 3 and max size 10
set {_label} to new label "File?" with {_att}
add {_label} to rows of {_modal}

View source