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

    Class DamageTypeSelector

    Hierarchy

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

    Constructors

    • Parameters

      • object: object

        Parent object

      • path: string

        Path to damage data in object

      • data: Set<string> = ...

        Damage types

      • options: { updateCallback: Function } = {}

        Options

        • updateCallback: Function

          Update callback

      Returns DamageTypeSelector

    Properties

    customTypes: Set<any>
    types: Set<any>
    DEFAULT_OPTIONS: {
        classes: string[];
        form: {
            closeOnSubmit: boolean;
            handler: (event: Event, formData: object) => Promise<any>;
        };
        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

    • Initialize the configuration for this application. Override the default ID to be unique to this entry selector instance based on document and attribute that is being edited.

      Parameters

      • options: ApplicationConfiguration

        The provided configuration options for the Application

      Returns ApplicationConfiguration

      The final configuration values for the application

    • Protected

      Update internal data snapshot on form change

      Parameters

      • ...this: any
      • formConfig: ApplicationFormConfiguration

        The configuration of the form being changed

      • event: Event

        The triggering event

      Returns Promise<void>

    • Protected

      Returns Promise<
          {
              buttons: { icon: string; label: string; type: string }[];
              categories: any[];
              customTypes: string;
              modifiers: {
                  _id: string;
                  abbr: string;
                  category: keyof readonly ["physical", "energy", "misc"];
                  color: string;
                  enabled: boolean;
                  flags?: object;
                  icon?: string;
                  id: string;
                  img?: string;
                  isModifier: boolean;
                  name: string;
                  namespace: string;
              }[];
              types: Set<any>;
          },
      >