API reference: @salmonui/data-grid/engine/tree
TreeLoadedCommandtype
import type { TreeLoadedCommand } from '@salmonui/data-grid/engine/tree';type TreeLoadedCommand = {
type: 'tree.loaded';
rowId: RowId;
status: 'loading' | 'loaded' | 'error' | 'idle';
childIds?: RowId[];
error?: string;
};
A child load settled (dispatched by the module; also the hook for data
layers that load children through their own channel). childIds names
rows that join rowId without carrying the relation in their data.
| Name | Signature | Description |
|---|---|---|
type | type: 'tree.loaded'; | |
rowId | rowId: RowId; | |
status | status: 'loading' | 'loaded' | 'error' | 'idle'; | |
childIdsoptional | childIds?: RowId[]; | |
erroroptional | error?: string; |