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

    Hierarchy

    • FormApplication
      • ItemActionSheet
    Index

    Constructors

    Properties

    _activeEdits: Record<string, string> = {}
    ACTIONS: any
    _warnedAppV1: boolean = true
    ACTIONS: {
        addAttack: (event: PointerEvent, target: HTMLElement) => Promise<void>;
        addCardNote: Object;
        addConditional: Object;
        addConditionalModifier: Object;
        addDamagePart: Object;
        deleteCardNote: Object;
        editMaterial: Object;
        removeAttack: (event: PointerEvent, target: HTMLElement) => Promise<void>;
        removeConditional: Object;
        removeConditionalModifier: Object;
        removeDamagePart: Object;
        selectDamageType: Object;
        selectImage: Object;
    } = ...

    Type Declaration

    • addAttack: (event: PointerEvent, target: HTMLElement) => Promise<void>
    • addCardNote: Object
    • addConditional: Object
    • addConditionalModifier: Object
    • addDamagePart: Object
    • deleteCardNote: Object
    • editMaterial: Object
    • removeAttack: (event: PointerEvent, target: HTMLElement) => Promise<void>
    • removeConditional: Object
    • removeConditionalModifier: Object
    • removeDamagePart: Object
    • selectDamageType: Object
    • selectImage: Object
    EDIT_TRACKING: string[] = ...

    Which fields to track edits for

    Accessors

    • get defaultOptions(): {
          classes: string[];
          closeOnSubmit: boolean;
          dragDrop: { dragSelector: string; dropSelector: string }[];
          height: number;
          resizable: boolean;
          scrollY: string[];
          submitOnChange: boolean;
          submitOnClose: boolean;
          tabs: {
              contentSelector: string;
              group: string;
              initial: string;
              navSelector: string;
          }[];
          template: string;
          width: number;
      }

      Assign the default options which are supported by the entity edit sheet.

      Returns {
          classes: string[];
          closeOnSubmit: boolean;
          dragDrop: { dragSelector: string; dropSelector: string }[];
          height: number;
          resizable: boolean;
          scrollY: string[];
          submitOnChange: boolean;
          submitOnClose: boolean;
          tabs: {
              contentSelector: string;
              group: string;
              initial: string;
              navSelector: string;
          }[];
          template: string;
          width: number;
      }

      The default options for this FormApplication class

      Application.defaultOptions

      foundry.utils.mergeObject(super.defaultOptions, {
      classes: ["form"],
      closeOnSubmit: true,
      editable: true,
      sheetConfig: false,
      submitOnChange: false,
      submitOnClose: false
      });

    Methods

    • Protected

      Non-action button clicks

      Parameters

      • event: PointerEvent

        Triggering event

      • target: HTMLElement

        Click target

      Returns boolean

      • True if this click was handled, false otherwise
    • Protected

      Handle action button clicks

      Parameters

      • event: PointerEvent

        Triggering event

      • target: HTMLElement

        Action element

      Returns boolean

      • true if handler was found, false otherwise.
    • Callback actions which occur at the beginning of a drag start workflow.

      Parameters

      • event: any

        The originating DragEvent

      Returns void

    • Callback actions which occur when a dragged element is dropped on a target.

      Parameters

      • event: any

        The originating DragEvent

      Returns Promise<undefined | Partial<AnyObject>>

    • Internal

      Handle dropping content-linkable data to <textarea> or text <input>

      Parameters

      • event: DragEvent
      • dropData: object

      Returns Promise<undefined | Partial<AnyObject>>

    • This method is called upon form submission after form data is validated

      Parameters

      • event: any

        The initial triggering submission event

      • formData: any

        The object of validated form data with which to update the object

      Returns Promise<void>

      A Promise which resolves once the update operation has completed

    • Returns Promise<
          {
              action: ItemAction;
              actor: ActorPF;
              choices: { measureTemplateTypes: Record<string, string> };
              config: ./config.mjs;
              cssClass: string;
              damageTypes: { [id: string]: object };
              data: any;
              editable: boolean;
              fields: any;
              img: undefined | string;
              item: ItemPF;
              rollData: object;
              tag: any;
              user: undefined | null | _Override<User, {}>;
          },
      >

    • Render the Application by evaluating it's HTML template against the object of data provided by the getData method If the Application is rendered as a pop-out window, wrap the contained HTML in an outer frame with window controls

      Parameters

      • ...args: any[]

      Returns ItemActionSheet

      The rendered Application instance

      Some subclasses return other results.