pivotick - v3.0.0
    Preparing search index...

    Interface EmptyStateOptions

    UI.emptyState: the card an empty canvas shows.

    The card is click-through, so panning and the canvas menu work over it, except for interactive content inside it (a button, a link, a form control, anything with a tabindex), which receives its own clicks.

    UI: {
    emptyState: {
    render: ({ initial }) => {
    const box = document.createElement('div')
    box.textContent = initial ? 'Nothing is related to this record.' : 'The canvas is empty.'
    return box
    },
    },
    }
    interface EmptyStateOptions {
        enabled?: boolean;
        render?: string | HTMLElement | ((ctx: EmptyStateContext) => RenderResult);
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    enabled?: boolean
    true
    
    render?: string | HTMLElement | ((ctx: EmptyStateContext) => RenderResult)

    The card's content. Run each time the card appears, not on every change while it is up, so it can say something different once the graph has held a node. A returned string renders as plain text; return an HTMLElement to render your own markup. May be async.

    'Nothing on the canvas yet'