View as Markdown

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;
};
DetailMethods members (4)
NameSignatureDescription
isExpandedisExpanded(ctx: ModuleContext<Row>, rowId: RowId): boolean;
getLoadgetLoad(ctx: ModuleContext<Row>, rowId: RowId): DetailLoadSnapshot;

Async load state of a row's detail; stable identity while unchanged. idle once the row object was replaced.

getExpandedIdsgetExpandedIds(ctx: ModuleContext<Row>): readonly RowId[];

Ids expanded explicitly (expand-all mode: ids collapsed explicitly are excluded by isExpanded).

getInfogetInfo(ctx: ModuleContext<Row>): DetailInfo;