ColumnTemplateProps
Represents the contextual properties passed to column template functions in the Syncfusion React Data Grid. Enables dynamic rendering of custom cell content by providing access to row data, column metadata, and row index. Commonly used in template-based columns to implement flexible and user-defined cell rendering logic.
Props
The following table outlines the props for the ColumnTemplateProps:
| Name | Type | Default | Description |
|---|---|---|---|
| column | {} | The column configuration object containing metadata such as field name, data type, and formatting options. Facilitates context-aware rendering by enabling templates to adapt based on column-specific attributes. | |
| data | T | {} | The complete data object for the row associated with the current cell. Grants access to all fields in the row, allowing template logic to render or manipulate cell content based on row-level data. |
| rowIndex | number | - | The zero-based index of the row within the grid. Useful for implementing conditional rendering or styling logic based on the row’s position. |