API reference: @salmonui/data-grid/engine
GroupingMethodstype
import type { GroupingMethods } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/grouping.
type GroupingMethods<Row> = {
getGroup(ctx: ModuleContext<Row>, rowId: RowId): GroupRowSnapshot | undefined;
getGroupRows(ctx: ModuleContext<Row>, rowId: RowId): readonly Row[];
isExpanded(ctx: ModuleContext<Row>, group: GroupTarget): boolean;
getLazyStatus(ctx: ModuleContext<Row>): {
readonly status: LazyStatus;
readonly error: unknown;
} | null;
};
| Name | Signature | Description |
|---|---|---|
getGroup | getGroup(ctx: ModuleContext<Row>, rowId: RowId): GroupRowSnapshot | undefined; | Caption or footer snapshot by row id ( |
getGroupRows | getGroupRows(ctx: ModuleContext<Row>, rowId: RowId): readonly Row[]; | Data rows of a group (template |
isExpanded | isExpanded(ctx: ModuleContext<Row>, group: GroupTarget): boolean; | Whether a group (row id, path key, or path) is expanded. |
getLazyStatus | getLazyStatus(ctx: ModuleContext<Row>): {
readonly status: LazyStatus;
readonly error: unknown;
} | null; | Lazy mode root level status. |