SubForm
Complex layout subform component for list (array) type form data, supporting nesting of complex layouts.
API
You can get the Call the SubForm instance by 'getComponent(SubForm ID)'.
setData
(rowIndex, data: object | {}) => Promise
Set a row of data in the subform
hide
(fields: []) => void
Hide subform columns
hideChild
(rowIndex, fields) => void
Hide the specific number of rows in the subform
display
(fields: []) => void
Display the hidden columns of the subform
displayChild
(rowIndex, fields) => void
Display the specific number of rows in the subform
disabled
- (fields, disabled: true | false) => void
Whether to disable subform columns
disabledChild
(rowIndex, fields, disabled: true | false) => void
Whether to disable the specific row fields in the subform
handleAddRow
() => void
Add a row to the subform
handleRemove
(rowIndex) => void
Remove a row from the subform
setOptions
(fields, options) => void
Set the field configuration in the subform
addClassName
(fields: [], className) => void
Add style classes to field items in the subform
removeClassName
(fields: [], className) => void
Remove style classes from the field items in the subform