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

    Class DamageResistanceSelector

    Extend the FormApplication to handle creating, removing, and editing and Actor's Damage Reduction and Energy Resistances.

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Constructors

    Properties

    damages: {}

    A list of key-value pairs for dropdown damage types

    dragDropHighlightTimeout: null | Timeout
    entries: any
    isDR: boolean

    Basic properties for handling operations

    originalEntries: { [key: string]: any }[]

    Original copy of the trait's entries

    DEFAULT_OPTIONS: {
        actions: { deleteTag: (event: Event) => void };
        classes: string[];
        window: { icon: string };
    } = ...
    PARTS: { footer: { template: string }; form: { template: string } } = ...

    Accessors

    Methods

    • Protected

      Define whether a user is able to conclude a drag-and-drop workflow for a given drop selector

      Parameters

      • selector: string

        The candidate HTML selector for the drop target

      Returns boolean

      Can the current user drop on this selector?

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

      Parameters

      • partId: any
      • context: any
      • options: any

      Returns Promise<
          | {
              buttons?: undefined;
              cssClass: string;
              document: any;
              dtypes: string[];
              editable: any;
              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>