View as Markdown

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

RowPinningOptionsinterface

import type { RowPinningOptions } from '@salmonui/data-grid/engine/row-pinning';
interface RowPinningOptions<Row> {
    readonly isRowPinned?: (row: Row) => boolean;
    readonly rowIds?: readonly RowId[];
}
RowPinningOptions members (2)
NameSignatureDescription
isRowPinnedoptionalreadonly isRowPinned?: (row: Row) => boolean;

Rows pinned by data. Evaluated once per row of a data array; a patch re-tests only the added and changed rows, so pinning follows CRUD. Must be pure. Read at engine creation.

rowIdsoptionalreadonly rowIds?: readonly RowId[];

Initially pinned row ids (besides isRowPinned).