Hierarchy

  • FormApplication
    • ItemActionSheet

Constructors

Properties

alignments: any

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

  • Internal

    Callback actions which occur at the beginning of a drag start workflow.

    Parameters

    • event: any

      The originating DragEvent

    Returns void

  • Internal

    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: {} };
            config: config;
            cssClass: string;
            damageTypes: { [id: string]: object };
            data: any;
            editable: boolean;
            fields: any;
            img: any;
            item: ItemPF;
            rollData: object;
            tag: any;
            user: null | StoredDocument<User>;
        },
    >