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

    Class AbstractDocumentSelectorAbstract

    An abstract class for a document selector application.

    Hierarchy (View Summary)

    • HandlebarsApplication<this> & ApplicationV2<
          RenderContext,
          Configuration,
          RenderOptions,
          this,
      >
    Index

    Constructors

    Properties

    DEFAULT_OPTIONS: {
        classes: string[];
        empty: string;
        form: {
            closeOnSubmit: boolean;
            handler: Object;
            submitOnChange: boolean;
            submitOnClose: boolean;
        };
        position: { width: number };
        sheetConfig: boolean;
        tag: string;
        window: { minimizable: boolean; resizable: boolean; title: string };
    } = ...
    PARTS: {
        footer: { template: string };
        form: { scrollable: string[]; template: string };
    } = ...

    Accessors

    Methods

    • Actions performed after closing the Application. Post-close steps are not awaited by the close process.

      Parameters

      • options: any

        Provided render options

      Returns void

    • Protected

      Attach event listeners to the rendered application form.

      Parameters

      • context: ApplicationRenderContext

        Prepared context data

      • options: RenderOptions

        Provided render options

      Returns void

    • Internal

      Returns Promise<
          {
              buttons: { label: string; type: string }[];
              document: any;
              empty: {
                  document: { id: string; img: string; name: string };
                  include: any;
              };
              searchTerm: any;
              sections: DocumentSelectorSection[];
              selected: string;
              showSectionHeaders: boolean;
          },
      >

    • Render selector and wait for it to resolve.

      Parameters

      • options: object

        Options

      Returns Promise<null | string | false | Document<any, any, null>>

      • Document or string for selected item, null if cancelled, or false or empty string if none were selected.