InterfaceBaseDataTableProps
Interface: InterfaceBaseDataTableProps<T>
Defined in: src/types/shared-components/DataTable/props.ts:17
Base props for DataTable component configuration.
Provides core table configuration including column definitions, row data, sizing, and sorting behavior. Extended by InterfaceDataTableProps for full functionality.
Type Parameters
T
T
The type of data for each row in the table
Properties
columns
columns:
IColumnDef<T,unknown>[]
Defined in: src/types/shared-components/DataTable/props.ts:19
Array of column definitions specifying how to render each column
keysToShowRows?
optionalkeysToShowRows:ReadonlySet<Key>
Defined in: src/types/shared-components/DataTable/props.ts:23
Set of row keys to display; if provided, only these rows are shown
onSortChange()?
optionalonSortChange: (event) =>void
Defined in: src/types/shared-components/DataTable/props.ts:31
Callback fired when sort state changes
Parameters
event
Returns
void
rowKey?
optionalrowKey: keyofT| (row) =>Key
Defined in: src/types/shared-components/DataTable/props.ts:25
Key or property name or function to extract unique identifier for each row
rows?
optionalrows:T[]
Defined in: src/types/shared-components/DataTable/props.ts:21
Array of row data to display in the table
sortable?
optionalsortable:boolean
Defined in: src/types/shared-components/DataTable/props.ts:27
Whether columns are sortable (default: true)
sortState?
optionalsortState:ISortState
Defined in: src/types/shared-components/DataTable/props.ts:29
Current sort state specifying column and direction