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

    Hierarchy

    • FormApplication
      • ItemActionSheet
    Index

    Constructors

    • Parameters

      • ...args: [object?: any, options?: Partial<Options>]

      Returns ItemActionSheet

      Foundry allows passing no value to the constructor at all.

    Properties

    _activeEdits: Record<string, string> = {}
    alignments: any
    _warnedAppV1: boolean = true
    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

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

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