Items
configurationA JavaScript array that contains the Form's items configuration. It enables you to specify things such as the type of input(editor) and validation rules for the input.
items
Arrayitems.attributes
ObjectDefines the attributes that are applied to the input element.
items.colSpan
Number|ArrayDefines the field size when grid layout is used. A fixed number defines the colspan for the form field. An array is used to map the colSpan to responsive breakpoints.
items.editor
String|FunctionDefines the editor widget type. The valid options are as follows:
- DropDown widgets - "AutoComplete", "DropDownList", "ComboBox", "MultiSelect", "DropDownTree", "MultiColumnComboBox"
- DatePicker widgets - "DateInput", "DatePicker", "DateTimePicker", "TimePicker"
- Input widgets - "TextBox", "TextArea", "NumericTextBox", "MaskedTextBox", "RadioGroup", "CheckBoxGroup", "Switch", "Rating", "Slider", "ColorPicker", "ColorGradient", "ColorPalette", "FlatColorPicker", "Signature", "OTPInput", "hidden"
- Editor widget - "Editor"
- Upload widget - "Upload"
Important - The casing of the editor must be exactly as shown, combobox is not the same as ComboBox.
For any other input, specify the editor as a function that returns the HTML of the element which you wish to render.
items.editorOptions
ObjectDefines the widget configuration for the specified items.editor.
items.field
StringMaps to the model field which will be configured and sets the name of the input.
items.grid
ObjectGrid layout settings of the form item.
items.hint
StringDefines the hint text that will be shown underneath the form editor.
items.id
StringDefines the field id.
items.label
String|ObjectDefines the field label.
items.layout
StringSpecify the layout of the item when items.type is set to "group". Valid options:
grid: This is equivalent todisplay: grid. It defines the form item as a grid container and establishes a new grid formatting context for its contents.
Default: ''
items.title
StringDefines the field title.
items.type
StringDefines the type of the item. Available options: "group".
items.validation
ObjectSpecifies the validation rules for the field. Refer to the Validator Component for additional information about the rules.