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

    Class MaterialSelector

    A specialized form used to select material types.

    Hierarchy

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

    Constructors

    • Applications are constructed by providing an object of configuration options.

      Parameters

      • Optionaloptions: {}

        Options used to configure the Application instance (default: {})

      Returns MaterialSelector

    Properties

    attributes: undefined | { addons: any; base: any; normal: any }

    The attributes of the material selector.

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

    Accessors

    Methods

    • Parameters

      • options: any

      Returns void

    • Parameters

      • options: object

        The options for the application.

      Returns object

      • The initialized options.
    • Internal

      The event handler for changes to form input elements

      Parameters

      • formConfig: ApplicationFormConfiguration

        The configuration of the form being changed

      • event: Event

        The triggering event

      Returns void

    • Parameters

      • context: any
      • options: any

      Returns void

    • Protected

      Attach event listeners to the rendered application form.

      Parameters

      • context: ApplicationRenderContext

        Prepared context data

      • options: RenderOptions

        Provided render options

      Returns void

    • Returns { addons: { key: string; name: string }[]; basics: {}; materials: {} }

    • Protected

      Parameters

      • partId: any

      Returns Promise<
          | undefined
          | {
              buttons?: undefined;
              choices: {
                  addons: { key: string; name: string }[];
                  basics: {};
                  materials: {};
              };
              cssClass: string;
              hasBase: boolean;
              materialAddons: {};
              materials: object;
          }
          | {
              buttons?: undefined;
              choices?: undefined;
              cssClass?: undefined;
              hasBase?: undefined;
              materialAddons?: undefined;
              materials?: undefined;
          }
          | {
              buttons: { icon: string; label: string; type: string }[];
              choices?: undefined;
              cssClass?: undefined;
              hasBase?: undefined;
              materialAddons?: undefined;
              materials?: undefined;
          },
      >