Optionaloptions: ConfigurationReadonly[___Readonly[___Readonly[___ReadonlyactorProtectedanimationThe current position of the application with respect to the window.document.body.
ReadonlyspriteIf this Application uses tabbed navigation groups, this mapping is updated whenever the changeTab method is called.
Reports the active tab for each group, with a value of null indicating no tab is active.
Subclasses may override this property to define default tabs for each group.
Static_appAn incrementing integer Application ID.
Static_maxZThe current maximum z-index of any displayed Application.
Static[___StaticBASE_Designates which upstream Application class in this class' inheritance chain is the base application. Any DEFAULT_OPTIONS of super-classes further upstream of the BASE_APPLICATION are ignored. Hook events for super-classes further upstream of the BASE_APPLICATION are not dispatched.
StaticDEFAULT_Static ReadonlyemittedAn array of event types which are valid for this class.
StaticPARTSStatic ReadonlyRENDER_The sequence of rendering states that describe the Application life-cycle.
StaticTABSConfiguration of application tabs, with an entry per tab group.
The CSS class list of this Application instance
The HTMLElement which renders this Application into the DOM.
Does this Application have a top-level form element?
Does this Application instance render within an outer window frame?
The HTML element ID of this Application instance.
This provides a readonly view into the internal ID used by this application.
This getter should not be overridden by subclasses, which should instead configure the ID in DEFAULT_OPTIONS or
by defining a uniqueId during _initializeApplicationOptions.
Is this Application instance currently minimized?
A record of all rendered template parts.
Is this Application instance currently rendered?
The current render state of the Application.
A convenience reference to the title of the Application window.
Convenience references to window header elements.
Protected_attachProtected_attachAttach event listeners to rendered template parts.
The id of the part being rendered
The rendered HTML element for the part
Rendering options passed to the render method
Optionalparts?: string[]Protected_awaitProtected_canTest whether this Application is allowed to be rendered.
Provided render options
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Return false to prevent rendering
Protected_configureOptionalparts?: string[]Modify the provided options passed to a render request.
Options which configure application rendering behavior
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_configureProtected_createCreate a ContextMenu instance used in this Application.
A handler function that provides initial context options
A CSS selector to which the ContextMenu will be bound
Additional options which affect ContextMenu construction
A created ContextMenu or null if no menu items were defined
Protected_doPerform an event in the application life-cycle. Await an internal life-cycle method defined by the class. Optionally dispatch an event for any registered listeners.
A handler function to call
Rest...args: HandlerArgsOptionaloptions: InexactPartial<DoEventOptions<HandlerArgs, Async>>Options which configure event handling
A promise which resoles once the handler is complete if async is true
Protected_getProtected_getProtected_headerProtected_initializeInitialize configuration options for the Application instance. The default behavior of this method is to intelligently merge options for each class with those of their parents.
Options provided directly to the constructor
Optionalactions?: {}Click actions supported by the Application and their event handler functions. A handler function can be defined directly which only responds to left-click events. Otherwise, an object can be declared containing both a handler function and an array of buttons which are matched against the PointerEvent#button property.
Optionalclasses?: string[]An array of CSS classes to apply to the Application
Optionalform?: { Configuration used if the application top-level element is a form
OptionalcloseOptionalhandler?: FormSubmissionOptionalsubmitOptionalid?: stringAn HTML element identifier used for this Application instance
Optionalposition?: { Default positioning data for the application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltag?: stringThe HTMLElement tag type used for the outer Application frame
OptionaluniqueAn string discriminator substituted for {id} in the default HTML element identifier for the class
Optionalwindow?: { Configuration of the window behaviors for this Application
OptionalcontentAdditional CSS classes to apply to the .window-content element
OptionalcontentA specific tag name to use for the .window-content element
Optionalcontrols?: HeaderControlsEntry[]An array of window control entries
Optionalframe?: booleanIs this Application rendered inside a window frame?
Optionalicon?: string | falseAn optional Font Awesome icon class displayed left of the window title
Optionalminimizable?: booleanCan the window app be minimized by double-clicking on the title
Optionalpositioned?: booleanCan this Application be positioned via JavaScript or only by CSS
Optionalresizable?: booleanIs this window resizable?
Optionaltitle?: stringThe window title. Displayed only if the application is framed
Configured options for the application instance
Protected_insertProtected_onProtected_onA generic event handler for action clicks which can be extended by subclasses. Action handlers defined in DEFAULT_OPTIONS are called first. This method is only called for actions which have no defined handler.
The originating click event
The capturing HTML element which defined a [data-action]
Protected_onProtected_onActions performed after closing the Application. Post-close steps are not awaited by the close process.
Provided render options
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_onActions performed after a first render of the Application.
Prepared context data
Optionaltabs?: {}Tab data prepared from an entry in ApplicationV2.TABS
Provided render options
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_onActions performed after the Application is re-positioned.
Provided render options
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_onActions performed after any render of the Application.
Prepared context data
Provided render options
Protected_onProtected_preActions performed before closing the Application. Pre-close steps are awaited by the close process.
Provided render options
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_preActions performed before a first render of the Application.
Prepared context data
Optionaltabs?: {}Tab data prepared from an entry in ApplicationV2.TABS
Provided render options
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Prepare application rendering context data for a given render request.
Options which configure application rendering behavior
Context data for the render operation
Protected_preparePrepare context that is specific to only a single rendered part.
It is recommended to augment or mutate the shared context so that downstream methods like _onRender have visibility into the data that was used for rendering. It is acceptable to return a different context object rather than mutating the shared context at the expense of this transparency.
The part being rendered
Shared context provided by _prepareContext
Options which configure application rendering behavior
Optionalparts?: string[]Context data for a specific part
Protected_prepareProtected_preActions performed before the Application is re-positioned. Pre-position steps are not awaited because setPosition is synchronous.
Provided render options
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_preOptionaltabs?: {}Tab data prepared from an entry in ApplicationV2.TABS
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_prePrepare data used to synchronize the state of a template part.
The id of the part being rendered
The new rendered HTML element for the part
The prior rendered HTML element for the part
A state object which is used to synchronize after replacement
Protected_removeProtected_renderRender the outer framing HTMLElement which wraps the inner HTML of the Application.
Options which configure application rendering behavior
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_renderProtected_renderHTMLRender each configured application part using Handlebars templates.
Context data for the render operation
Options which configure application rendering behavior
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
A single rendered HTMLElement for each requested part
Render an HTMLElement for the Application. An Application subclass must implement this method in order for the Application to be renderable.
Context data for the render operation
Options which configure application rendering behavior
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
The result of HTML rendering may be implementation specific. Whatever value is returned here is passed to _replaceHTML
Protected_replaceHTMLReplace the HTML of the application with the result provided by Handlebars rendering.
The result from Handlebars template rendering
The content element into which the rendered result must be inserted
Options which configure application rendering behavior
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Replace the HTML of the application with the result provided by the rendering backend. An Application subclass should implement this method in order for the Application to be renderable.
The result returned by the application rendering backend
The content element into which the rendered result must be inserted
Options which configure application rendering behavior
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_syncSynchronize the state of a template part after it has been rendered and replaced in the DOM.
The id of the part being rendered
The new rendered HTML element for the part
The prior rendered HTML element for the part
A state object which is used to synchronize after replacement
Protected_tearOptionalanimate?: booleanWhether to animate the close, or perform it instantaneously
OptionalcloseWhether the application was closed via keypress.
Optionalsubmitted?: booleanIs the application being closed because a form was submitted?
Protected_updateWhen the Application is rendered, optionally update aspects of the window frame.
Options provided at render-time
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Protected_updateTranslate a requested application position updated into a resolved allowed position for the Application. Subclasses may override this method to implement more advanced positioning behavior.
Requested Application positioning data
Resolved Application positioning data
Add a new event listener for a certain type of event.
The type of event being registered for
The listener function called when the event occurs
Optionaloptions: AddListenerOptionsOptions which configure the event listener
Change the active tab within a tab group in this Application instance.
The name of the tab which should become active
The name of the tab group which defines the set of tabs
Optionaloptions: ChangeTabOptionsAdditional options which affect tab navigation
(default: {})
Close the Application, removing it from the DOM.
Optionaloptions: { Options which modify how the application is closed.
Optionalanimate?: booleanWhether to animate the close, or perform it instantaneously
OptionalcloseWhether the application was closed via keypress.
Optionalsubmitted?: booleanIs the application being closed because a form was submitted?
A Promise which resolves to the closed Application instance
ProtectedparseRender the Application, creating its HTMLElement and replacing its innerHTML. Add it to the DOM if it is not currently rendered and rendering is forced. Otherwise, re-render its contents.
Optionaloptions: { Options which configure application rendering behavior.
A boolean is interpreted as the "force" option.
(default: {})
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
A Promise which resolves to the rendered Application instance
Optional_options: { Legacy options for backwards-compatibility with the original ApplicationV1#render signature.
(default: {})
Optionalforce?: booleanForce application rendering. If true, an application which does not yet exist in the DOM is added. If false, only applications which already exist are rendered.
OptionalisIs this render the first one for the application? This property is populated automatically.
Optionalparts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optionalposition?: { A specific position at which to render the Application
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Optionaltab?: string | {}A tab to activate. Either the tab's ID for applications with only one tab group, or an object of tab groups to tab IDs. Re-rendering an Application with this option will not trigger changeTab.
Optionalwindow?: { Updates to the Application window frame
Optionalcontrols?: booleanRe-render the window controls menu?
Optionalicon?: string | falseUpdate the window icon with a new value?
Optionaltitle?: stringUpdate the window title with a new value?
Update the Application element position using provided data which is merged with the prior position.
New Application positioning data
Optionalheight?: number | "auto"Un-scaled pixels in height or "auto"
Optionalleft?: numberWindow offset pixels from left
Optionalscale?: numberA numeric scaling factor applied to application dimensions
Optionaltop?: numberWindow offset pixels from top
Optionalwidth?: number | "auto"Un-scaled pixels in width or "auto"
OptionalzA z-index of the application relative to siblings
Programmatically submit an ApplicationV2 instance which implements a single top-level form.
OptionalsubmitOptions: AnyObjectArbitrary options which are supported by and provided to the configured form submission handler.
A promise that resolves to the returned result of the form submission handler, if any.
Return is accurate to 13.340, but https://github.com/foundryvtt/foundryvtt/issues/12661 classifies it as a bug. Correct return is based on the handler.
Toggle display of the Application controls menu. Only applicable to window Applications.
Optionalexpanded: null | booleanSet the controls visibility to a specific state.
Otherwise, the visible state is toggled from its current value.
null is same as undefined
Optionaloptions: ToggleControlOptionsOptions to configure the toggling behavior
A Promise which resolves once the control expansion animation is complete
ProtectedupdateProtectedupdateStaticClearStaticinheritanceStaticparseCSSDimensionsParse a CSS style rule into a number of pixels which apply to that dimension.
The CSS style rule
The relevant dimension of the parent element
The parsed style dimension in pixels
StaticPlayStaticPlayStaticQueueStaticRemoveStaticwait
Application instance configuration options.