View as Markdown

API reference: @salmonui/data-grid

DataGridTreeRowInfointerface

import type { DataGridTreeRowInfo } from '@salmonui/data-grid';
interface DataGridTreeRowInfo {
    readonly rowId: RowId;
    readonly depth: number;
    readonly parentId: RowId | null;
    readonly hasChildren: boolean;
    readonly childCount: number;
    readonly expanded: boolean;
    readonly loadStatus: DataGridTreeLoadStatus;
    readonly posinset: number;
    readonly setsize: number;
    readonly context: boolean;
    readonly visible: boolean;
}

Row info of api.getTreeRow(rowId).

DataGridTreeRowInfo members (11)
NameSignatureDescription
rowIdreadonly rowId: RowId;
depthreadonly depth: number;
parentIdreadonly parentId: RowId | null;
hasChildrenreadonly hasChildren: boolean;
childCountreadonly childCount: number;
expandedreadonly expanded: boolean;
loadStatusreadonly loadStatus: DataGridTreeLoadStatus;
posinsetreadonly posinset: number;

1-based ordinal and count among the kept siblings (aria-posinset / aria-setsize).

setsizereadonly setsize: number;
contextreadonly context: boolean;

Kept only as an ancestor or descendant of a filter match.

visiblereadonly visible: boolean;