Skip to content

A data table with sorting, filtering, pagination, selection, and custom templates. Built on top of atlasTable.

atlas-data-grid

Examples

Sorting, search and paging

Columns and rows are data. Turn on sorting, the filter row, global search and paging with inputs.

No filters active
Ada Lovelace Engineering Lead 128000
Grace Hopper Engineering Architect 135000
Alan Turing Research Scientist 121000
Katherine Johnson Research Analyst 98000
Margaret Hamilton Engineering Director 150000

API

Generated from the library source, so it always matches the code.

AtlasDataGridComponent atlas-data-grid

InputTypeDefaultDescription
dataSource requiredT[], T[] | null | undefined— The rows. In local mode the grid sorts, filters and pages them; in server mode it shows them as the current page. null / undefined count as no rows.
columns requiredGridColumn<T>[]— Column definitions ( field , header , type , width , sortable , filterable , templates, aggregates…), in display order.
dataMode GridDataMode'local'local : the grid does sorting, filtering and paging itself. server : it reports them through stateChange and shows the rows you pass for that state.
totalRows number0 Total number of rows on the server, for the pager in server mode.
loading booleanfalse Shows skeleton rows instead of data and announces loading to screen readers.
loadingRowCount number5 Number of skeleton rows shown while loading .
showTotalCount booleanfalse Shows the total row count in the footer (also when paginated is off).
emptyText string'' Text shown when there are no rows. Defaults to the locale's emptyText .
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
tableClass string'' Extra classes for the inner <table> .
striped booleanfalse Alternates the background of rows.
hoverable booleantrue Highlights the row under the pointer.
dense booleanfalse Smaller cell padding, for data-heavy screens.
bordered booleanfalse Draws borders between cells.
rowHeight 'compact' | 'default' | 'comfortable''default' Vertical density of data rows. - 'compact' — tight rows (~40px) - 'default' — driven by cell padding - 'comfortable' — tall rows (~64px) Overridden per-instance by the --atlas-grid-row-height CSS variable.
headerStyle 'bold' | 'subtle''bold' Visual weight of header labels. - 'bold' — current behavior (bold, tracked labels) - 'subtle' — lighter, normal-weight labels
height string'auto' Height of the grid (any CSS length or % ). With a fixed height the body scrolls and the header stays visible; auto grows with the rows.
maxHeight string | null | undefinedundefined Maximum height; the body scrolls beyond it and the header stays visible. Unset, a grid with height="auto" stops at 70vh , so a long page of rows scrolls inside the grid instead of scrolling the header off screen (not in the card view, which has no header). null lets the grid grow with its rows (the page scrolls).
sortable boolean | undefinedundefined Enables sorting on every column (a column's own sortable wins). Defaults to on in local mode, off in server mode.
sort SortState | nullnull Active sort. The grid starts from it and resets to it whenever the bound value changes.
filterable boolean | undefinedundefined Enables column filters (a column's own filterable wins). Defaults to on in local mode, off in server mode.
showFilterRow booleantrue Shows the row of filter controls under the header when filtering is on (columns in 'filterBar' mode).
stateKey string | nullnull Saves the user's view (sort, filters, search, page, page size, column widths, order and visibility) in localStorage under this key and restores it when the grid is created. Use one key per grid. null turns it off; getState() / setState() store it elsewhere.
filterMode GridFilterMode'filterBar' Filter UI of the columns: 'filterBar' (default) puts a control in the filter row; 'excel' puts a filter button in each header that opens a menu with sort items, a value search and a checkbox list of the column's values. A column's filter.mode overrides it.
filterValuesProvider ((field: string, state: GridServerState) => Promise<GridFilterOption[]>) | nullnull In server mode, loads a column's values for its Excel filter (the grid only has the current page). Receives the field and the current server state; columns with filter.options do not call it. Without it, server-mode Excel filters list only filter.options .
globalSearch boolean | undefinedundefined Shows a search box in the toolbar that matches all columns. Defaults to on in local mode, off in server mode.
searchPlaceholder string | undefinedundefined Placeholder of the global search input. Defaults to the locale's dataGrid.search .
paginated booleantrue Splits the rows into pages with a pager in the footer.
page number1 Pagination state. Each has a default; a bound value overrides it, and the grid resets to the bound value whenever it changes. User navigation is reported via pageChange : to control the page, bind [page]="page()" and set your signal from (pageChange) .
pageSize numberDEFAULT_PAGE_SIZE Rows per page. The user can change it from pageSizeOptions ; the grid resets to the bound value when it changes.
pageSizeOptions SelectOption[]this.buildPageSizeOptions() Choices of the rows-per-page select.
selectionMode SelectionMode'none'single or multiple adds a selection column and reports it through selectionChange . Set rowId too.
rowId string | ((row: T) => unknown) | nullnull Row identity: a field name or a function. Needed for selection, editing and expanded rows to survive a data refresh.
selectedKeys two-wayreadonly unknown[][] Keys ( rowId values) of the selected rows, two-way: [(selectedKeys)] follows the user's selection, and setting it selects those rows ( [] clears it). Needs rowId . A key whose row is not loaded yet (another page in server mode) is applied once that row arrives.
rowClassFn ((row: T, index: number) => string) | nullnull Returns extra classes for a row, e.g. to highlight overdue items.
ariaLabel string | undefinedundefined Accessible name of the grid. Defaults to the configured dataGrid.ariaLabel .
resizable booleantrue Lets the user resize columns by dragging the header edge (or with the keyboard on the resize handle).
reorderable booleantrue Lets the user reorder columns by dragging headers; reported through columnReorder .
columnSizing ColumnSizingMode | ColumnSizingConfig | undefinedundefined Controls how column widths are automatically computed when no explicit width is set. Accepts a bare mode string or a full ColumnSizingConfig object. Defaults to undefined (off): existing grids render exactly as today, so upgrading is a zero-breaking-change, purely additive feature. 'content' is the RECOMMENDED mode — opt in with [columnSizing]="'content'" . - 'content' (recommended): each column is as wide as its widest rendered cell value, with the header label as a minimum. - 'header': columns are sized to fit only their header label. - 'stretch': columns distribute to fill the container width, no horizontal scroll. Columns with an explicit width are never resized. In local mode the full unfiltered local data set ( dataSource ) is measured, so filtering and sorting never change column widths; in server mode only the currently loaded page is measured (widths may shift on page navigation).
editType GridEditType'inline'inline edits the row in place and emits rowSave ; custom only emits addStart / editStart so you can open your own editor (a dialog, a page).
allowAdd booleanfalse Shows an Add button in the toolbar.
allowEdit booleanfalse Adds an Edit action to every row.
allowDelete booleanfalse Adds a Delete action to every row; it emits deleteRow , and you remove the row from dataSource .
confirmDelete booleanfalse Asks for confirmation ( deleteConfirm() dialog) before deleteRow is emitted.
confirmDeleteMessage string'Are you sure you want to delete this record? This action cannot be undone.' Message of the delete confirmation.
actions GridAction<T>[][] Custom row actions shown in the actions column; a click emits actionClick .
actionsColumnPin 'left' | 'right' | 'none''right' Position of the actions column. 'none' disables sticky.
actionsColumnSticky booleantrue Whether the actions column is sticky (frozen).
locale Partial<GridLocale>— Overrides some texts of this grid; the rest come from the configured locale ( dataGrid ).
showToolbar booleantrue Shows the toolbar (search, Add, column chooser, export).
showColumnChooser booleantrue Shows the column chooser in the toolbar, to hide and show columns.
showExportCSV booleanfalse Shows a CSV export button. In local mode the grid exports the visible columns of the filtered, sorted rows; in server mode it emits exportRequest .
showExportExcel booleanfalse Shows an Excel export button; works like showExportCSV .
detailTemplate TemplateRef<GridDetailContext<T>> | nullnull Template of an expandable detail row; adds an expand toggle to every row. The template receives the row as $implicit .
multiExpand booleantrue Whether several detail rows can be open at once; false closes the previous one.
adaptiveView booleantrue When the grid itself is narrower than adaptiveBreakpoint , show each row as a card of label/value pairs instead of the table. false keeps the table at every width (it scrolls horizontally).
adaptiveBreakpoint number480 Width of the grid, in pixels, below which the adaptive view shows cards.
OutputPayloadDescription
sortChangeGridSortEvent Emits when the user changes the sort.
filterChangeGridFilterEvent Emits when a column filter or the global search changes.
pageChangeGridPageEvent Emits when the user changes the page or the page size.
selectionChangeGridSelectionEvent<T> Emits the selected rows after every selection change.
rowClickGridRowClickEvent<T> Emits when a row is clicked.
columnReorderGridColumnReorderEvent Emits the new column order after the user moves a column.
columnVisibilityChange{ field: string; hidden: boolean } Emits when the user hides or shows a column in the column chooser.
exportRequest{ format: 'csv' | 'excel' } In server mode, emits when the user asks for an export, so you can produce the file from the server.
stateChangeGridServerState In server mode, emits the page, page size, sort, filters and search after any change: load the matching rows.
addStartvoid With editType="custom" , emits when Add is clicked: open your own editor.
editStartGridEditEvent<T> Emits when editing of a row starts (Edit, or Add in inline mode); with editType="custom" open your own editor here.
editCancelGridEditEvent<T> Emits when inline editing is cancelled.
rowSaveGridRowSaveEvent<T> Emits the edited row (and the original) when an inline add or edit is saved: update dataSource .
deleteRowGridDeleteEvent<T> Emits the row to delete (after confirmation with confirmDelete ): remove it from dataSource .
actionClickGridActionEvent<T> Emits the custom action and its row when an actions button is clicked.

Functions

FunctionDescription
applyRowDelete<T>(rows: T[], event: GridDeleteEvent<T>, keyField: keyof T): T[] Removes the deleted row from a local data array by key.
applyRowSave<T>(rows: T[], event: GridRowSaveEvent<T>, keyField: keyof T): T[] Applies the result of a rowSave event to a local data array. For 'add', prepends the new row. For 'edit', replaces the matching row by key.
buildApiParams(state: GridServerState): HttpParams Builds HttpParams from a GridServerState object. Useful for constructing API requests in server mode. Produces params like: ?page=1&pageSize=10&sortField=name&sortDirection=asc&filter.name=john&globalSearch=foo A filter's second condition (Excel filter) adds filter2.<field> , filterOp2.<field> and filterLogic.<field> ( and / or ).
compareValues(a: unknown, b: unknown): number Ascending comparison of two cell values: null / undefined last, numbers numerically, Date objects by time, date-shaped strings as dates, other strings with case-insensitive localeCompare .
compileColumnFilters<T>(filters: readonly FilterState[], columns: readonly GridEngineColumn[], getValue: GridValueAccessor<T>): GridRowPredicate<T> | null Compiles column filters into one row predicate: a row passes when it passes **every** filter. Each filter's column type comes from columns (by field ); a filter on an unknown field compares as text. Returns null when there are no filters, so callers can skip the pass.
compileGlobalSearch<T, C extends GridEngineColumn>(term: string, columns: readonly C[], getValue: GridValueAccessor<T>, getFormattedValue: GridFormattedValueAccessor<T, C>): GridRowPredicate<T> | null Compiles the global search into a row predicate: a row passes when any column without filterable: false contains the term, case-insensitively, in its displayed text or in its raw value. The term is trimmed; returns null when it is empty.
distinctFilterValues<T, C extends GridEngineColumn>(rows: readonly T[], column: C, getValue: GridValueAccessor<T>, getFormattedValue: GridFormattedValueAccessor<T, C>, blankLabel: string): GridFilterOption[] The distinct values of one column, as filter options for a value list (the Excel filter). Each option's value is the cell's key ( filterValueKey : text, ISO for dates), the same key the 'in' operator matches, so ticking options and filtering with their values round-trips. Its label is the displayed text of the first row with that value; empty cells ( null , undefined , '' ) become one option with value '' and blankLabel . Options follow the column's sort order ( compareValues on the raw values), with the blank option last.
filterValueKey(raw: unknown): string The text key of a cell value in a value-list filter (the 'in' operator and the Excel filter's options): Date objects as ISO strings (stable across browser locales), null / undefined as '' (the blank key), anything else as String(value) .
interpolate(template: string, vars: Record<string, string | number>): string Interpolates {token} placeholders in a template string (locale texts such as 'Showing {first}–{last} of {total}' ); a missing token becomes '' .
matchesFilter(raw: unknown, filter: FilterState, columnType?: string): boolean Whether one raw cell value passes one column filter (both conditions when it has a second with a non-empty value). columnType picks the comparison: 'number' compares numerically, 'date' compares calendar days, anything else compares lowercase text. A value that cannot be read as a number or a date falls back to a text contains . The 'in' operator (multi-select, Excel filter) matches the value's key ( filterValueKey ) against filter.values , and matches everything when values is empty.
sortRows<T>(rows: T[], sort: SortState | null, columns: readonly GridEngineColumn[], getValue: GridValueAccessor<T>): T[] Returns a sorted copy of rows (the input is not mutated). The same array comes back when sort is null or names a field that is not in columns . Values compare with compareValues .

Types

ColumnSizingConfig

Full config object for grid-level column sizing. Passing a bare ColumnSizingMode string is equivalent to { mode } .

PropertyTypeDescription
mode ColumnSizingMode Sizing strategy.
minWidth? number Minimum auto-computed width in pixels. Overridden per-column by GridColumn.minWidth. Default: 60
maxWidth? number Maximum auto-computed width in pixels. Overridden per-column by GridColumn.maxWidth. Default: 640
paddingOffset? number Pixel offset added to measured text width to account for cell padding. Tune this if your custom theme uses non-standard cell padding. Default: 40 (matches Tailwind p-4 = 16px each side + 8px buffer)

ColumnSizingMode

Controls how auto-sizing computes column widths. - 'content': width = max(header, widest cell value). Recommended mode. - 'header': width = header label width only. - 'stretch': columns fill the available container width (no horizontal scroll). Falls back to 'content' if columns are already wider than the container.

type ColumnSizingMode = 'content' | 'header' | 'stretch'

FilterOperator

type FilterOperator = | 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'notEquals' | 'gte' | 'lte' | 'between' | 'in'

FilterSecondCondition

The second condition of a FilterState .

PropertyTypeDescription
logic 'and' | 'or' How it joins the first condition.
operator FilterOperator —
value string Value, as text, compared like FilterState.value .

FilterState

PropertyTypeDescription
field string —
value string Primary filter value, as text (it is what the filter control and the URL parameters carry).
operator FilterOperator —
values? string[] Array of values for the 'in' operator (multi-select filter). When present and non-empty, takes precedence over value .
valueTo? string Upper-bound value for the 'between' operator (date-range / number range).
second? FilterSecondCondition A second condition on the same column (the Excel filter's custom filter), joined to the first with logic : 'and' keeps rows that pass both, 'or' rows that pass either.

GridAction

PropertyTypeDescription
id string —
icon? string —
label? string —
ariaLabel? string —
variant? ButtonVariants['variant'] —
visible? (row: T) => boolean —
disabled? (row: T) => boolean —

GridActionEvent

PropertyTypeDescription
action string —
row T —
index number —

GridAggregateConfig

PropertyTypeDescription
type GridAggregateType —
label? string —
format? (value: number) => string —
compute? (values: number[]) => number —

GridAggregateType

type GridAggregateType = 'sum' | 'avg' | 'count' | 'min' | 'max'

GridCellContext

PropertyTypeDescription
$implicit T —
value unknown —
index number —
column GridColumn<T> —

GridColumn

PropertyTypeDescription
field keyof T & string Unique key — maps to a property on T or a custom identifier for template-only columns
header string Header label
width? string Fixed pixel or CSS width, e.g. '120px', '10%'
minWidth? number Minimum width when resizing (px)
maxWidth? number Maximum width when resizing (px)
align? 'left' | 'center' | 'right' Text alignment for both header and cells
sortable? boolean Whether this column can be sorted. Default: true (when the grid is sortable ).
filterable? boolean Whether this column can be filtered. Default: true (when the grid is filterable ).
filter? GridColumnFilterConfig Per-column filter configuration. Controls which Atlas form component renders in the filter row, which operator is used, and optional options/data source. When omitted, the column renders the default plain text input. Turn filtering off with filterable: false .
cellTemplate? TemplateRef<GridCellContext<T>> Custom cell template
headerTemplate? TemplateRef<GridHeaderContext<T>> Custom header template
resizable? boolean Whether the column can be resized by the user
hidden? boolean Hide column without removing it from column definition
cellClass? string CSS class(es) applied to every cell in this column
headerClass? string CSS class(es) applied to the header cell
textOverflow? 'ellipsis' | 'wrap' | 'clip' Controls text overflow behavior for cell content.
aggregate? GridAggregateConfig Aggregate function to display in the footer summary row.
pin? 'left' | 'right' Pin (freeze) this column to the left or right edge.
sizing? ColumnSizingMode | 'none' Per-column auto-sizing override. - 'content' | 'header' | 'stretch': overrides the grid-level columnSizing mode for this column. - 'none': disables auto-sizing for this column (falls back to browser default width). Ignored when an explicit width is set on the column.
editable? boolean —
editor? GridEditor —
editorOptions? SelectOption[] —
editorTemplate? TemplateRef<GridEditorTemplateContext> —
required? boolean —
type? 'text' | 'date' | 'number' —
dateFormat? AtlasDateFormat —
numberFormat? 'decimal' | 'integer' | 'percent' | 'currency' —
currency? string —
decimals? number —

GridColumnFilterConfig

Per-column filter configuration. Attach as filter?: GridColumnFilterConfig on a GridColumn definition.

PropertyTypeDescription
type? GridFilterControlType Which Atlas component to render in the filter row. Defaults to 'input' (plain text).
operator? FilterOperator Fixed filter operator for this column. Inferred from type when omitted (see DEFAULT_FILTER_OPERATOR_BY_TYPE ).
placeholder? string Placeholder text shown in the filter control. Falls back to the localized grid placeholder ( GridLocale.filterPlaceholder , default Filter ) when omitted.
options? GridFilterOption[] Options list for type: 'select' and type: 'multi-select' . Same shape as the SelectOption of atlas-select and atlas-multi-select .
template? TemplateRef<any> Custom TemplateRef for type: 'custom' . The grid passes a GridFilterCellContext as the implicit template context.
mode? GridFilterMode Filter UI of this column, overriding the grid's filterMode . With 'excel' , type , placeholder and template are ignored and options , when set, is the value list.

GridColumnReorderEvent

PropertyTypeDescription
columns string[] —
movedField string —
newIndex number —

GridDataMode

Determines how the grid handles sorting, filtering, and pagination. - 'local': All operations are performed client-side on the full dataset (default). - 'server': Operations are delegated to the server.

type GridDataMode = 'local' | 'server'

GridDeleteEvent

PropertyTypeDescription
row T —
index number —

GridEditEvent

PropertyTypeDescription
mode GridEditMode —
row T | null —
index number —

GridEditMode

type GridEditMode = 'add' | 'edit'

GridEditor

Editor type for inline editing cells. 'json' edits an object or array value in atlas-json-editor ; the row cannot be saved while the text is not valid JSON.

type GridEditor = 'text' | 'number' | 'select' | 'date' | 'json'

GridEditorTemplateContext

PropertyTypeDescription
$implicit unknown —
field string —
onInput (value: unknown) => void —

GridEditType

inline: the grid renders editors and manages the draft, emitting rowSave. custom: the grid only emits addStart/editStart/deleteRow; the consumer provides its own UI.

type GridEditType = 'inline' | 'custom'

GridEngineColumn

The part of a column definition the engine reads. A data grid GridColumn fits it, and so will the column type of any other grid built on this engine.

PropertyTypeDescription
field string Key of the value in the row.
type? string'number' and 'date' change how filters match and how values compare; anything else is text.
filterable? booleanfalse leaves the column out of the global search.

GridFilterCellContext

PropertyTypeDescription
$implicit unknown Current raw filter value for this column (string for most types).
column GridColumn<T> Column definition.
applyFilter (value: unknown) => void Apply a new filter value — fires the normal filter pipeline.
clearFilter () => void Clear this column's active filter.

GridFilterControlType

Which Atlas form control renders in the filter row for this column. Defaults to 'input' (plain text) when not specified.

type GridFilterControlType = | 'input' // plain text input (default — existing behaviour) | 'select' // atlas-select — single value from a fixed list | 'multi-select' // atlas-multi-select — multiple values → 'in' operator | 'datepicker' // atlas-datepicker — ISO date string | 'date-range' // atlas-date-range-picker — { start, end } → 'between' | 'number' // atlas-number-input — numeric value | 'switch' // atlas-switch — boolean true/false | 'custom'

GridFilterEvent

PropertyTypeDescription
filters FilterState[] —

GridFilterMode

How a column is filtered: 'filterBar' puts a control in the filter row under the header; 'excel' puts a filter button in the header that opens a menu with sort items, a search box and a checkbox list of the column's values.

type GridFilterMode = 'filterBar' | 'excel'

GridFilterOption

One choice of a select / multi-select filter. Same shape as the forms SelectOption , declared here so the engine entry does not depend on the form controls.

PropertyTypeDescription
value string Value written to the filter ( FilterState.value , or one of values for 'in' ).
label string Text shown in the control.
disabled? boolean Shows the option but stops it from being chosen.

GridFormattedValueAccessor

Returns the text a cell shows for a row (formatted with the column's format).

type GridFormattedValueAccessor = (row: T, column: C) => string

GridHeaderContext

PropertyTypeDescription
$implicit GridColumn<T> —
sort SortState | null —

GridLocale

PropertyTypeDescription
search string —
add string —
exportCsv string —
exportExcel string —
columns string —
reset string —
close string —
actionsHeader string —
edit string —
delete string —
save string —
cancel string —
expandRow string —
collapseRow string —
selected string —
emptyText string —
pagerFormat string —
pagerSelectedFormat string —
rowsPerPage string —
totalCountFormat string —
filterContains string —
filterEquals string —
filterStartsWith string —
filterEndsWith string —
filterActiveSingular string —
filterActivePluralFormat string —
noFiltersActive string —
clearFilters string —
filterPlaceholder string —
filterByColumnFormat string Accessible label for a column filter control. {column} is the column header.
clearColumnFilterFormat string Accessible label for a column's clear-filter button. {column} is the column header.
selectAllRows string Accessible label of the header select-all checkbox.
selectRowFormat string Accessible label of a row's selection checkbox. {index} is the 1-based row number on the page.
ariaLabel string Accessible name of the grid when it has no own ariaLabel .
loadingAnnouncement string Screen-reader announcement while loading is true.
saveBlockedAnnouncement string Screen-reader announcement when Save is pressed while a field is empty but required or holds invalid input.
loadedAnnouncementFormat string Screen-reader announcement once rows are loaded. {count} is the number of rows.
filterButtonFormat string Excel filter: accessible label of a column's filter button. {column} is the column header.
filterButtonActiveFormat string Excel filter: label of the filter button while the column is filtered. {column} is the column header.
filterSortAscending string Excel filter: sort item, ascending.
filterSortDescending string Excel filter: sort item, descending.
filterClear string Excel filter: removes this column's filter.
filterSearchValues string Excel filter: label and placeholder of the value search box.
filterSelectAll string Excel filter: the select-all checkbox.
filterValuesLabel string Excel filter: accessible name of the value list.
filterBlanks string Excel filter: the option for empty cells.
filterNoValues string Excel filter: shown when no value matches the search.
filterLoading string Excel filter: shown while the values load (server mode).
filterValuesCountFormat string Excel filter: announced after a search. {count} is the number of matching values.
filterTooManyValuesFormat string Excel filter: shown when the list is capped. {count} is the number of values shown.
filterOk string Excel filter: applies the ticked values.
filterModeValues string Excel filter: switch item that shows the value list.
filterModeCondition string Excel filter: switch item that shows the conditions.
filterModeLabel string Excel filter: accessible name of the Values / Condition switch.
filterOperatorLabel string Excel filter: accessible name of the first operator.
filterValueLabel string Excel filter: accessible name of the first value.
filterSecondOperatorLabel string Excel filter: accessible name of the second operator.
filterSecondValueLabel string Excel filter: accessible name of the second value (optional).
filterLogicLabel string Excel filter: accessible name of the And / Or switch.
filterAnd string Excel filter: both conditions must match.
filterOr string Excel filter: either condition may match.
filterNotEquals string Operator label: not equal.
filterGreaterOrEqual string Operator label: greater than or equal (on or after, for dates).
filterLessOrEqual string Operator label: less than or equal (on or before, for dates).
sortBy string Adaptive view: label of the sort select.
sortAscending string Adaptive view: sort direction button while sorted ascending.
sortDescending string Adaptive view: sort direction button while sorted descending.
pagerCompactFormat string Compact footer: the rows shown. {first} , {last} and {total} as in pagerFormat .

GridPageEvent

PropertyTypeDescription
page number —
pageSize number —

GridRowClickEvent

PropertyTypeDescription
row T —
index number —
event MouseEvent —

GridRowPredicate

Decides whether a row is kept.

type GridRowPredicate = (row: T) => boolean

GridRowSaveEvent

PropertyTypeDescription
mode GridEditMode —
row T —
original T | null —
index number —

GridSelectionEvent

PropertyTypeDescription
selected T[] —

GridServerState

Represents the full grid state emitted via stateChange in server mode. Contains everything needed to build an API request.

PropertyTypeDescription
page number —
pageSize number —
sort SortState[] Sort state — supports multi-column sorting. First element is primary sort.
filters FilterState[] —
globalSearch string —

GridSortEvent

PropertyTypeDescription
sort SortState | null —

GridValueAccessor

Reads the raw value of field from a row.

type GridValueAccessor = (row: T, field: string) => unknown

GridViewState

What the user changed in a grid's view, as getState() returns it and setState() / stateKey restore it. Plain JSON, so it can be stored as is.

PropertyTypeDescription
sort SortState | null —
filters FilterState[] —
globalSearch string —
page number —
pageSize number —
columnWidths Record<string, string> CSS widths by field (e.g. '160px' ), from resizing or auto-fit.
columnOrder string[] | null Field order after the user reordered columns; null keeps the columns order.
hiddenColumns string[] Fields hidden from the column chooser.

PaginationState

PropertyTypeDescription
page number —
pageSize number —

SelectionMode

type SelectionMode = 'none' | 'single' | 'multiple'

SortDirection

type SortDirection = 'asc' | 'desc'

SortState

PropertyTypeDescription
field string —
direction SortDirection —
Data loaded, 7 row(s)