pivotick - v1.5.0
    Preparing search index...

    Interface EdgePromptDataOptions

    Options for EdgeCreateContext.promptData — a modal that collects a whole data payload for the new edge (not just a label). Supply either fields (a declarative form, built with the same field system as the node editor) or render + getValues (arbitrary HTML you populate and read yourself). If both are given, render wins.

    interface EdgePromptDataOptions {
        cancelLabel?: string;
        fields?: FieldConfig[];
        getValues?: () => EdgeData;
        render?: (body: HTMLElement) => void;
        submitLabel?: string;
        title?: string;
    }
    Index

    Properties

    cancelLabel?: string

    Cancel button label.

    'Cancel'
    
    fields?: FieldConfig[]

    Declarative form fields; the resolved object is keyed by each field's key.

    getValues?: () => EdgeData

    Read the collected values out of your custom rendered body on submit.

    render?: (body: HTMLElement) => void

    Populate the modal body with your own HTML (ignored if fed no getValues).

    submitLabel?: string

    Submit button label.

    'Add'
    
    title?: string

    Modal header.

    'Edge details'