interface / @typed/ui/TreeGrid

CellOptions

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

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Navigable cells
Since
1.0.0

Import

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

Signatures

export interface CellOptions extends Dom.HostOptions<HTMLDivElement> {
    readonly state: RefSubject.HydratedRefSubject<State, Schema.SchemaError>;
    readonly collection?: RefSubject.RefSubject<Collection.State<CellPosition>>;
    readonly id: string;
    readonly rowId: string;
    readonly columnIndex: number;
    readonly parentId?: string;
    readonly hasChildren?: boolean;
    readonly content: Renderable.Any;
}

Property: collection

Item registry used for collection-driven keyboard behavior and mounted ordering.

Property: columnIndex

Caller-supplied column index used for movement and emitted unchanged as aria-colindex; ARIA indexes are one-based.

Property: content

Renderable child content for the component host.

Property: hasChildren

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

Property: id

Stable id used for collection identity and ARIA relationships.

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