View as Markdown

API reference: @salmonui/data-grid/engine/row-pinning

RowPinningMethodstype

import type { RowPinningMethods } from '@salmonui/data-grid/engine/row-pinning';
type RowPinningMethods<Row> = {
    isPinned(ctx: ModuleContext<Row>, rowId: RowId): boolean;
    getPinnedRowIds(ctx: ModuleContext<Row>): readonly RowId[];
};
RowPinningMethods members (2)
NameSignatureDescription
isPinnedisPinned(ctx: ModuleContext<Row>, rowId: RowId): boolean;

True when the row is pinned (explicitly, or by isRowPinned and not unpinned). Filtered-out rows can be pinned.

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

Ids of the pinned rows the view shows, in display order.