namespace / @typed/ui

TreeGrid

Public namespace exposed as TreeGrid from @typed/ui.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
namespace

Import

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

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

Signatures

export * as TreeGrid from "./TreeGrid.js";

Members

  • TreeGrid.Cell

    Renders and optionally registers one gridcell with row and column coordinates.

  • TreeGrid.CellOptions

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

  • TreeGrid.CellPosition

    Logical coordinates stored with each registered TreeGrid cell.

  • TreeGrid.Group

    Renders a rowgroup and hides it while its parent row is collapsed.

  • TreeGrid.GroupOptions

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

  • TreeGrid.InitialState

    Initial TreeGrid values. Uses Tree state and defaults.

  • TreeGrid.Root

    Renders the focus-owning treegrid root and applies combined grid and expansion keys.

  • TreeGrid.RootOptions

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

  • TreeGrid.Row

    Renders a hierarchical row with level and optional expanded state.

  • TreeGrid.RowOptions

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

  • TreeGrid.State

    Tree expansion state reused for a grid whose active ID names a cell. expandedIds names parent rows, while activeId names the active cell within a row.

  • TreeGrid.StateSchema

    Effect Schema used by makeState to encode, decode, and hydrate TreeGrid state.

  • TreeGrid.activate

    Sets the active TreeGrid row or cell id without changing expansion.

  • TreeGrid.collapse

    Removes a row id from expandedIds using the Tree state transition.

  • TreeGrid.expand

    Adds a row id once to expandedIds using the Tree state transition.

  • TreeGrid.isExpanded

    Tests membership in expandedIds without touching the DOM; this is the Tree helper exposed from the TreeGrid entrypoint.

  • TreeGrid.makeCollection

    Creates a scoped Collection for TreeGrid items.

  • TreeGrid.makeState

    Creates hydrated TreeGrid state. Uses Tree state and defaults.

Other public imports

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

Source