g3-toolkit API Reference
    Preparing search index...

    Interface GraphToolbarProps

    interface GraphToolbarProps {
        className?: string;
        core?: Core | null;
        cy?: Core | null;
        initialLayout?: string;
        ugm: UGM;
    }
    Index

    Properties

    className?: string
    core?: Core | null

    The Cytoscape instance from CytoscapeCanvas onReady; null (or omitted) until the canvas mounts, and every control no-ops until a live handle arrives. The same prop name every handle-taking component uses (issue #18).

    cy?: Core | null

    Use core. Accepted as an alias for one major and removed in the next major; when both are supplied core wins and this prop is ignored. Warns once per component in development when it is the only handle given.

    initialLayout?: string

    VR-5 (owner verification 2026-07-26): the layout the SHELL mounted the canvas with, so the dropdown reflects reality (the Hierarchy tab laid out hierarchic while the dropdown said force directed). Toolbar layout ids: force, hierarchy, circle, grid, concentric.

    ugm: UGM