Skip to content

FormTable ​

Subform component, used for list (array) type form data, uses Table layout, does not support layout nesting.

API ​

Use getComponent(ID), you can get the subform instance.

setData ​

  • (rowIndex, data: object | {}) => Promise

    Set a row of data in the subform

hide ​

  • (fields: []) => void

    Hide the columns of the subform

hideChild ​

  • (rowIndex, fields) => void

    Hide the field in specific number of rows in the subform

display ​

  • (fields: []) => void

    Display the hidden columns of the subform

displayChild ​

  • (rowIndex, fields) => void

    Display the field in specific number of rows in the subform

disabled ​

  • (fields, disabled: true | false) => void

    Disabled/Enable the columns of the subform

disabledChild ​

  • (rowIndex, fields, disabled: true | false) => void

    Disabled/Enable the field in specific number of rows in the subform

handleAddRow ​

  • () => void

    Adds a row to the subform

handleRemove ​

  • (rowIndex) => void

    Remove a row

setOptions ​

  • (fields, options) => void

    Set the field configuration items in the subform

addClassName ​

  • (fields: [], className) => void

    Add a style class to a field item in the subform

removeClassName ​

  • (fields: [], className) => void

    Remove the subform field style class