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.7
Category
Hierarchical rows
Since
1.0.0

Import

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

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