Offers a dynamic list selector that allows the user to add new entries and delete existing entries

Hierarchy (View Summary)

Constructors

Properties

dragDropHighlightTimeout: null | Timeout
DEFAULT_OPTIONS: {
    actions: {
        addEntry: (...this: any, event: any) => Promise<void>;
        deleteEntry: (...this: any, event: any) => Promise<void>;
    };
    classes: string[];
    dragDrop: { dragSelector: string; dropSelector: string }[];
    form: {
        closeOnSubmit: boolean;
        handler: (
            ...this: any,
            event: SubmitEvent,
            form: HTMLFormElement,
            formData: FormDataExtended,
        ) => Promise<void>;
        submitOnClose: boolean;
    };
    position: { width: number };
    sheetConfig: boolean;
    tag: string;
    window: { minimizable: boolean; resizable: boolean };
} = ...

Accessors

Methods

  • Internal

    Update internal data snapshot on form change

    Parameters

    • ...this: any
    • formConfig: any
    • event: any

    Returns Promise<void>

  • Internal

    Returns Promise<
        {
            buttons: { icon: string; label: string; type: string }[];
            document: any;
            dtypes: string[];
            entries: any;
            fields: string[];
            id: any;
        },
    >

  • Internal

    Save the new data back to the document.

    Parameters

    • ...this: any
    • event: SubmitEvent

      The originating form submission event

    • form: HTMLFormElement

      The form element that was submitted

    • formData: FormDataExtended

      Processed data for the submitted form

      • object

        The object of the form

    Returns Promise<void>