pivotick - v0.0.1
    Preparing search index...

    Interface ExtraPanel

    Additional panel in the graph UI's sidebar. Currently only displayed when an element is selected

    Both title and render can be:

    • A string or HTMLElement for static content, or
    • A function returning a string or HTMLElement for dynamic content based on the current selected node or edge.
    {
    render: (node: Node): HTMLElement => {
    const div = document.createElement('div')
    div.textContent = node?.description ?? 'Empty node description'
    return div
    },
    title: "My extra panel",
    }
    interface ExtraPanel {
        alwaysVisible?: boolean;
        render:
            | string
            | HTMLElement
            | ((element: Node | Edge | null) => string | HTMLElement);
        title:
            | string
            | HTMLElement
            | ((element: Node | Edge | null) => string | HTMLElement);
    }
    Index

    Properties

    alwaysVisible?: boolean

    should the panel be always visible

    false
    
    render:
        | string
        | HTMLElement
        | ((element: Node | Edge | null) => string | HTMLElement)
    title:
        | string
        | HTMLElement
        | ((element: Node | Edge | null) => string | HTMLElement)