interface / @typed/ui

TreeGrid.RowOptions

Inputs accepted by TreeGrid.Row in addition to the shared DOM host options.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Hierarchical rows
Since
1.0.0
Member of
TreeGrid

Import

import { TreeGrid } from "@typed/ui";

Access TreeGrid.RowOptions through the imported TreeGrid export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export interface RowOptions extends Dom.HostOptions<HTMLDivElement> {
    readonly state: RefSubject.HydratedRefSubject<State, Schema.SchemaError>;
    readonly rowId: string;
    readonly parentId?: string;
    readonly level?: number;
    readonly hasChildren?: boolean;
    readonly content: Renderable.Any;
}

Property: content

Renderable child content for the component host.

Property: hasChildren

Whether aria-expanded is emitted and hierarchical keys may open descendants.

Property: level

One-based hierarchy level exposed through aria-level.

Property: parentId

Id whose expansion controls this descendant group.

Property: rowId

Stable logical row identity used by vertical grid movement.

Property: state

Renderer-independent RefSubject state consumed by this component or operation.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source