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

    Class ItemSelector

    A specialized form application for selecting an Item from a list of available choices

    Used for example with ammo selector.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    DEFAULT_OPTIONS: {
        actor: undefined;
        empty: boolean;
        filterFunc: undefined;
        items: undefined;
        selected: null;
        window: { title: string };
    } = ...
    PARTS: {
        footer: { template: string };
        form: { scrollable: string[]; template: string };
    } = ...

    Accessors

    Methods

    • Initialize configuration options for the Application instance. The default behavior of this method is to intelligently merge options for each class with those of their parents.

      • Array-based options are concatenated
      • Inner objects are merged
      • Otherwise, properties in the subclass replace those defined by a parent

      Parameters

      • options: any

        Options provided directly to the constructor

      Returns any

      Configured options for the application instance

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