Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class AbstractListSelectorAbstract

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

    Hierarchy (View Summary)

    • HandlebarsApplication<this> & DocumentSheetV2<
          any,
          RenderContext<any>,
          Configuration<any>,
          RenderOptions,
          this,
      >
    Index

    Constructors

    • Parameters

      • Optionaloptions: {}

      Returns AbstractListSelector

    Properties

    dragDropHighlightTimeout: null
    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

    • Protected

      Update internal data snapshot on form change

      Parameters

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

      Returns Promise<void>

    • Internal

      Parameters

      • partId: any

      Returns Promise<
          | {
              buttons?: undefined;
              cssClass: string;
              document: any;
              dtypes: string[];
              editable: boolean;
              entries: any;
              fields: string[];
              id: any;
          }
          | {
              buttons?: undefined;
              cssClass?: undefined;
              document?: undefined;
              dtypes?: undefined;
              editable?: undefined;
              entries?: undefined;
              fields?: undefined;
              id?: undefined;
          }
          | {
              buttons: { icon: string; label: string; type: string }[];
              cssClass?: undefined;
              document?: undefined;
              dtypes?: undefined;
              editable?: undefined;
              entries?: undefined;
              fields?: undefined;
              id?: undefined;
          },
      >

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