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

Abstract

Hierarchy

Constructors

Properties

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

Type declaration

  • actions: {
        addEntry: ((event) => Promise<void>);
        deleteEntry: ((event) => Promise<void>);
    }
    • addEntry: ((event) => Promise<void>)
        • (event): Promise<void>
        • Internal

          Add a new entry to the list

          Parameters

          • event: any

          Returns Promise<void>

          Static

    • deleteEntry: ((event) => Promise<void>)
        • (event): Promise<void>
        • Internal

          Delete an existing entry from the list

          Parameters

          • event: any

          Returns Promise<void>

          Static

  • classes: string[]
  • dragDrop: {
        dragSelector: string;
        dropSelector: string;
    }[]
  • form: {
        closeOnSubmit: boolean;
        handler: ((event, form, formData) => Promise<void>);
        submitOnClose: boolean;
    }
    • closeOnSubmit: boolean
    • handler: ((event, form, formData) => Promise<void>)
        • (event, form, formData): Promise<void>
        • Internal

          Save the new data back to the document.

          Parameters

          • event: SubmitEvent

            The originating form submission event

          • form: HTMLFormElement

            The form element that was submitted

          • formData: FormDataExtended

            Processed data for the submitted form

          Returns Promise<void>

    • submitOnClose: boolean
  • position: {
        width: number;
    }
    • width: number
  • sheetConfig: boolean
  • tag: string
  • window: {
        minimizable: boolean;
        resizable: boolean;
    }
    • minimizable: boolean
    • resizable: boolean

Accessors

Methods

  • Internal

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

    Inherit Doc

    Async

  • Internal

    Save the new data back to the document.

    Parameters

    • event: SubmitEvent

      The originating form submission event

    • form: HTMLFormElement

      The form element that was submitted

    • formData: FormDataExtended

      Processed data for the submitted form

    Returns Promise<void>

Generated using TypeDoc