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

Hierarchy (view full)

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;
    };
} = ...

Type declaration

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

          Add a new entry to the list

          Parameters

          • Rest...this: any
          • event: any

          Returns Promise<void>

    • deleteEntry: ((...this: any, event: any) => Promise<void>)
        • (...this, event): Promise<void>
        • Internal

          Delete an existing entry from the list

          Parameters

          • Rest...this: any
          • event: any

          Returns 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;
    }
    • closeOnSubmit: boolean
    • handler: ((...this: any, event: SubmitEvent, form: HTMLFormElement, formData: FormDataExtended) => Promise<void>)
        • (...this, event, form, formData): Promise<void>
        • Internal

          Save the new data back to the document.

          Parameters

          • Rest...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

          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;
    }>

  • Internal

    Save the new data back to the document.

    Parameters

    • Rest...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

    Returns Promise<void>