API reference: @salmonui/data-grid/engine
DetailMethodstype
import type { DetailMethods } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/expansion.
type DetailMethods<Row> = {
isExpanded(ctx: ModuleContext<Row>, rowId: RowId): boolean;
getLoad(ctx: ModuleContext<Row>, rowId: RowId): DetailLoadSnapshot;
getExpandedIds(ctx: ModuleContext<Row>): readonly RowId[];
getInfo(ctx: ModuleContext<Row>): DetailInfo;
};
| Name | Signature | Description |
|---|---|---|
isExpanded | isExpanded(ctx: ModuleContext<Row>, rowId: RowId): boolean; | |
getLoad | getLoad(ctx: ModuleContext<Row>, rowId: RowId): DetailLoadSnapshot; | Async load state of a row's detail; stable identity while unchanged. |
getExpandedIds | getExpandedIds(ctx: ModuleContext<Row>): readonly RowId[]; | Ids expanded explicitly (expand-all mode: ids collapsed explicitly are excluded by |
getInfo | getInfo(ctx: ModuleContext<Row>): DetailInfo; |