windease API reference - v0.6.0
    Preparing search index...

    Interface ContainerCap

    interface ContainerCap {
        allowsDragOut: boolean;
        allowsDrop: boolean;
        allowsPinning: boolean;
        childOrder: NodeId[];
        config: unknown;
        state?: unknown;
        strategyId: string;
    }
    Index

    Properties

    allowsDragOut: boolean

    When false, this container suppresses drag handles on all its children (in addition to per-child slot.placement.locked). Default true.

    allowsDrop: boolean

    When false, this container rejects all DnD drops. Default true.

    allowsPinning: boolean
    childOrder: NodeId[]

    Canonical record of this container's children and their order. The store is the source of truth: every mutation that adds, removes, moves, or reorders a child rewrites this array. Layout strategies, the React useChildren hook, snapshot/hydrate, and DnD all read from here.

    Today this is the only place child order lives. The declarative React layer reconciles JSX sibling order into this array via Store.setChildOrder(parentId, orderedIds); a future iteration may move to an order-keyed model (e.g. sparse fractional keys) so that concurrent reorder operations don't have to round-trip the full permutation. Until then, treat this array as the single canonical ordering and prefer setChildOrder / reorderInParent / moveNode over mutating it.

    config: unknown
    state?: unknown
    strategyId: string