API reference: @salmonui/data-grid/engine/tree-remote
RemoteTreeOptionsinterface
import type { RemoteTreeOptions } from '@salmonui/data-grid/engine/tree-remote';interface RemoteTreeOptions<Row> {
readonly getRowId: (row: Row, index: number) => RowId;
readonly onError?: (event: RemoteTreeError) => void;
readonly rootBlocks?: {
readonly blockSize?: number;
readonly initialBlocks?: number;
};
}
| Name | Signature | Description |
|---|---|---|
getRowId | readonly getRowId: (row: Row, index: number) => RowId; | The grid's |
onErroroptional | readonly onError?: (event: RemoteTreeError) => void; | Called once per failed child load (not for aborted loads). |
rootBlocksoptional | readonly rootBlocks?: {
readonly blockSize?: number;
readonly initialBlocks?: number;
}; | Infinite scroll in tree mode: read the root rows in blocks of
|