View as Markdown

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.

TreeLoadedCommand members (5)
NameSignatureDescription
typetype: 'tree.loaded';
rowIdrowId: RowId;
statusstatus: 'loading' | 'loaded' | 'error' | 'idle';
childIdsoptionalchildIds?: RowId[];
erroroptionalerror?: string;