@spartanfx/react v1.0.8
@spartanfx/react / IDataTableColumn
Interface: IDataTableColumn<T>
Defines a column in the DataTable component.
Can optionally include custom Fluent UI IColumn configuration for advanced rendering and behavior.
Type Parameters
T = any
The type of items in the DataTable (for type-safe fieldName)
Properties
| Property | Type | Description |
|---|
detailsListColumn? | Partial<IColumn> | Optional customization of the column using Fluent UI DetailsList column settings. |
fieldName? | keyof T & string | Field name of the property to display in this column. Must be a valid key of the item type T. |
onGetFormattedValue? | (item) => string | Optional formatter that extracts a plain string value from an item for this column. Used by grouping, export, and any feature that needs a text representation of the field. When not provided, the raw field value is converted via String(). |