gui.inputs reference
Every input shortcut takes a path string and an optional props object. The props object inherits the widget’s typed WidgetProps, plus the DX-specific props (label, disabled, readonly, validator, defaultValue, uid, tags, size, states, include, exclude, onChange, onLoad, onFilter, onBlur).
When label (and placeholder, for inputs that accept one) is omitted, the engine derives one from path — gui.inputs.textInput('firstName') renders with the label First Name. See Sensible defaults / Auto-label for the exact transform, how to override, and how to suppress.
Signature
Section titled “Signature”gui.inputs.<shortcut>(path: string, props?: Props, tags?: string[]): GuiInputsShortcut;A fully-populated example, exercising most fields you’ll reach for:
gui.inputs.textInput( 'user.email', // path — where the value lives in the form data { // props — the widget's typed props + DX fields label: 'Email', placeholder: 'you@example.com', hint: 'We never share your email.', disabled: false, readonly: false, autocomplete: 'email', defaultValue: '', validator: { required: true, format: 'email', messages: { required: 'Email is required', format: 'Enter a valid email', }, }, onChange: 'emailChanged', // wire a named event the form's `formEvent` callback receives states: { // per-state prop overrides — see /form-definition/states/ registerMode: { label: 'Choose a sign-up email' }, }, include: { in: ['needsEmail'] }, }, ['identity'], // tags — addressable groups for selectors);Most shortcuts also accept a runtime-function variant for any individual prop — see Runtime Functions. For per-widget required props (e.g. dropdown’s items, repeater’s template), see the matching page in the Widgets Reference.
Shortcuts
Section titled “Shortcuts”| Shortcut | Renders | Reference |
|---|---|---|
gui.inputs.textInput | text input | Textinput |
gui.inputs.numberInput | number input | Number Input |
gui.inputs.booleanInput | toggle | Toggle |
gui.inputs.password | password input | Password |
gui.inputs.currency | currency input | Currency |
gui.inputs.checkbox | checkbox | Checkbox |
gui.inputs.radiogroup | radio group | Radio Group |
gui.inputs.select | select | Select |
gui.inputs.dropdown | dropdown (autocomplete) | Dropdown |
gui.inputs.list | scrolling list | List |
gui.inputs.tags | tags input (removable chips) | Tags |
gui.inputs.textarea | multi-line text | Textarea |
gui.inputs.markdown | markdown editor | Markdown |
gui.inputs.calendar | inline calendar | Calendar |
gui.inputs.dateInput | date input (typed) | Date Input |
gui.inputs.datePicker | date picker (popover calendar) | Date Picker |
gui.inputs.rangeCalendar | range calendar | Range Calendar |
gui.inputs.rangeDateInput | typed date range | Range Date Input |
gui.inputs.rangeDatePicker | popover date range | Range Date Picker |
gui.inputs.repeater | repeater | Repeater |
gui.inputs.custom | your custom input | Custom Widgets |
For each widget, refer to the matching reference page for the full prop list and live demos.