Add/Edit Form
Path: Exchange/Pika View/Component/Form/Main
The Add/Edit Form is a form that dynamically adapts to the indicated table by automatically supplying editable fields that correspond to columns in the table. It also features a "read-only" mode for simple display of the data.
Parameters
Name | Type | Description |
---|---|---|
headerConfig | dictionary | Config options for the display of the header of the Form.
|
model | dictionary | Configuration model attributes and columns used to create fields on the Form.
|
readOnly | boolean | True sets Form into read-only mode. Defaults to |
recordId | any | The primary key of the record being edited, if applicable. |
rowData | dictionary | A json dictionary representing the data of the row being edited/displayed. |
Examples
Header Customization
{
"headerText": "A Demo Example:",
"isClosable": false,
"isVisible": true
}
Read-Only Mode
Setting the readOnly
parameter to True renders an Add/Edit Form without any inputs, and will instead display each field for the row as a text string. Useful for displaying a summary of a piece of data without allowing data to be changed.