Skip to main content

TableProps

Props for Table

Properties​

id?​

optional id: string

Unique identifier for the table


items​

items: WithId[]

Array of items to display in the table


loading?​

optional loading: boolean

Controls whether the table should display a loading state. Used when data is being fetched or processed externally


onItemDeleted?​

optional onItemDeleted: VoidFuncNoParam

Callback function invoked after an item has been deleted


onPaging()?​

optional onPaging: (v) => void

Event handler called when pagination changes Receives the pagination configuration as parameter

Parameters​

v​

Paging

Returns​

void


onRefreshItems?​

optional onRefreshItems: VoidFuncNoParam

Event handler called when items need to be refreshed Typically called after actions like sort, filter, or data updates


onRowClick()?​

optional onRowClick: (v) => void

Event handler called when a row is clicked Receives the clicked row's data item as parameter

Parameters​

v​

WithId

Returns​

void


onRowsUpdate()?​

optional onRowsUpdate: (v) => void

Event handler called when rows are updated Receives array of updated data items to synchronize with external state

Parameters​

v​

WithId[]

Returns​

void


onSort()?​

optional onSort: (v) => void

Event handler called when sorting is requested Receives the sort configuration as parameter Called when TableConfig.externalSorting is true

Parameters​

v​

TableSort

Returns​

void


tableConfig​

tableConfig: TableConfig

Configuration for the table behavior and appearance


uiResourceMeta?​

optional uiResourceMeta: UiResourceMeta

Ui metadata for items