SeizenTableEventMap
Defined in: useEventBus.ts:47
Map of built-in event names to their payload types.
SeizenTable automatically emits these events:
- State change events: data, selection, filter, sorting, pagination
- Action events: row-click
Plugins can extend EventBusRegistry to add custom events.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”TData = unknown
The type of row data. Defaults to unknown.
Properties
Section titled “Properties”cell-context-menu
Section titled “cell-context-menu”cell-context-menu:
object
Defined in: useEventBus.ts:85
Emitted when cell context menu is opened. Payload includes the cell, column, row, and value.
cell:
Cell<TData,unknown>
column
Section titled “column”column:
Column<TData,unknown>
row:
Row<TData>
value:
unknown
column-context-menu
Section titled “column-context-menu”column-context-menu:
object
Defined in: useEventBus.ts:96
Emitted when column header context menu is opened. Payload includes the column.
column
Section titled “column”column:
Column<TData,unknown>
data-change
Section titled “data-change”data-change:
TData[]
Defined in: useEventBus.ts:52
Emitted when table data changes. Payload is the entire data array.
filter-change
Section titled “filter-change”filter-change:
ColumnFiltersState
Defined in: useEventBus.ts:63
Emitted when column filters change.
pagination-change
Section titled “pagination-change”pagination-change:
PaginationState
Defined in: useEventBus.ts:73
Emitted when pagination changes.
row-click
Section titled “row-click”row-click:
TData
Defined in: useEventBus.ts:79
Emitted when a table row is clicked. Payload is the clicked row data.
selection-change
Section titled “selection-change”selection-change:
TData[]
Defined in: useEventBus.ts:58
Emitted when row selection changes. Payload is the array of selected rows.
sorting-change
Section titled “sorting-change”sorting-change:
SortingState
Defined in: useEventBus.ts:68
Emitted when sorting changes.