View as Markdown

API reference: @salmonui/data-grid

DataGridTreeContextinterface

import type { DataGridTreeContext } from '@salmonui/data-grid';
interface DataGridTreeContext {
    readonly depth: number;
    readonly hasChildren: boolean;
    readonly expanded: boolean;
    readonly loadStatus: DataGridTreeLoadStatus;
}

ctx.tree of column.renderCell, getRowProps and row templates in tree mode.

DataGridTreeContext members (4)
NameSignatureDescription
depthreadonly depth: number;

0 for root rows.

hasChildrenreadonly hasChildren: boolean;
expandedreadonly expanded: boolean;
loadStatusreadonly loadStatus: DataGridTreeLoadStatus;