Skip to content

FormTable ​

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

API ​

Get the subform component instance by getComponent(subform field identifier).

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 specific number of row field in the subform.

display ​

  • (fields: []) => void

    Display the columns of the subform.

displayChild ​

  • (rowIndex, fields) => void

    Display the specific number of row field in the subform.

disabled ​

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

    Whether to disable columns of the subform.

disabledChild ​

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

    Whether to disable fields for subform rows.

handleAddRow ​

  • () => void

    Add a row to the subform.

handleRemove ​

  • (rowIndex) => void

    Add a row from the subform.

setOptions ​

  • (fields, options) => void

    Set the field configuration items in the subform

addClassName ​

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

    Adds a style class to a field item in a subform

removeClassName ​

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

    Remove the style class from a field item in a subform