Skip to content

Form Elements

Pratyush Kumar edited this page Dec 27, 2022 · 4 revisions

Supported Element Types

uiType = "Input"

Defines a text input element.

Schema:

{
  "sort": someNumber
  "uiType": "Input",
  "jsonKey": "someValue",
  "level": someNumber,
  "label": "Name of the field to be displayed",
  "description": "Tooltip info to be shown when an ℹ️ icon is hovered",
  "icon": "Any icon to be shown next to the name",
  "placeholder": "Placeholder text".
  "pattern": "Regex pattern that the input will be matched against",
  "validate": {
    "required": booleanValue,
    "immutable": booleanValue
  }
}

uiType = "Radio"

Defines a radio input element displayed in the form of tabs.

Schema:

// TBA

uiType = "Select"

Defines a select element.

Schema:

// TBA

uiType = "Switch"

Defines a toggle switch.

Schema:

// TBA

uiType = "Textarea"

Defines a textarea element.

Schema:

// TBA
Clone this wiki locally