FormRenderEvent
Represents the event triggered when a form is initialized for editing or adding a row. This interface provides access to the form validator and the associated row data, allowing configuration of validation logic and dynamic form behavior during rendering.
Props
The following table outlines the props for the FormRenderEvent:
| Name | Type | Default | Description |
|---|---|---|---|
| data | T | - | Contains the complete data object for the row being edited or added. Provides access to field values required for conditional rendering, dynamic validation, or logic execution during form setup. |
| formRef | RefObject<IFormValidator> | null | Holds a reference to the form validator instance used for validating input fields. Enables access to validation methods and state, allowing programmatic control over form validation during initialization or interaction. |
| rowIndex | number | - | Specifies the index of the row for which the form is rendered. Identifies the row's position in the grid's data source, supporting both edit and insert operations within the grid component. |