Optional
options: ConfigurationReadonly
[___Readonly
[___Readonly
[___Readonly
actorProtected
animationsThe current position of the application with respect to the window.document.body.
If 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
_An incrementing integer Application ID.
Static
_The current maximum z-index of any displayed Application.
Static
[___Static
BASE_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.
Static
DEFAULT_Static
Readonly
emittedAn array of event types which are valid for this class.
Static
PARTSStatic
Readonly
RENDER_The sequence of rendering states that describe the Application life-cycle.
Static
TABSConfiguration 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?
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
_Attach event listeners to the Application frame.
Protected
_Attach 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
Protected
_Internal
Wait for a CSS transition to complete for an element.
The element which is transitioning
A timeout in milliseconds in case the transitionend event does not occur
Protected
_Test whether this Application is allowed to be rendered.
Provided render options
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Return false to prevent rendering
Protected
_Modify the provided options passed to a render request.
Options which configure application rendering behavior
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Protected
_Create 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
_Perform 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
Optional
options: InexactPartial<DoEventOptions<HandlerArgs, Async>>Options which configure event handling
A promise which resoles once the handler is complete if async is true
Protected
_Configure the array of header control menu options
Protected
_Get the configuration for a tabs group.
The ID of a tabs group
Protected
_Iterate over header control buttons, filtering for controls which are visible for the current client.
Protected
_Initialize 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
Optional
actions?: {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.
Optional
classes?: string[]An array of CSS classes to apply to the Application
Optional
form?: { closeOnSubmit?: boolean; handler?: FormSubmission; submitOnChange?: boolean }Configuration used if the application top-level element is a form
Optional
id?: stringAn HTML element identifier used for this Application instance
Optional
position?: {Default positioning data for the application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tag?: stringThe HTMLElement tag type used for the outer Application frame
Optional
uniqueId?: stringAn string discriminator substituted for {id} in the default HTML element identifier for the class
Optional
window?: {Configuration of the window behaviors for this Application
Optional
contentClasses?: string[]Additional CSS classes to apply to the .window-content element
Optional
contentTag?: stringA specific tag name to use for the .window-content element
Optional
controls?: HeaderControlsEntry[]An array of window control entries
Optional
frame?: booleanIs this Application rendered inside a window frame?
Optional
icon?: string | falseAn optional Font Awesome icon class displayed left of the window title
Optional
minimizable?: booleanCan the window app be minimized by double-clicking on the title
Optional
positioned?: booleanCan this Application be positioned via JavaScript or only by CSS
Optional
resizable?: booleanIs this window resizable?
Optional
title?: stringThe window title. Displayed only if the application is framed
Configured options for the application instance
Protected
_Insert the application HTML element into the DOM. Subclasses may override this method to customize how the application is inserted.
The element to insert
The inserted element
Handle changes to an input element within the form.
The form submission event
Protected
_A 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
_Handle click events on a tab within the Application.
Protected
_Actions performed after closing the Application. Post-close steps are not awaited by the close process.
Provided render options
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Actions performed after a first render of the Application.
Prepared context data
Optional
tabs?: {Tab data prepared from an entry in ApplicationV2.TABS
Provided render options
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Actions performed after the Application is re-positioned.
Provided render options
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Actions performed after any render of the Application.
Prepared context data
Provided render options
Protected
_Handle submission for an Application which uses the form element.
The form configuration for which this handler is bound
The form submission event
Protected
_Actions performed before closing the Application. Pre-close steps are awaited by the close process.
Provided render options
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Actions performed before a first render of the Application.
Prepared context data
Optional
tabs?: {Tab data prepared from an entry in ApplicationV2.TABS
Provided render options
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: 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
_Prepare 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
Context data for a specific part
Protected
_Prepare application tab data for a single tab group.
The ID of the tab group to prepare
Protected
_Actions performed before the Application is re-positioned. Pre-position steps are not awaited because setPosition is synchronous.
Provided render options
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Optional
tabs?: {Tab data prepared from an entry in ApplicationV2.TABS
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Prepare 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
_Remove the application HTML element from the DOM. Subclasses may override this method to customize how the application element is removed.
The element to be removed
Protected
_Render the outer framing HTMLElement which wraps the inner HTML of the Application.
Options which configure application rendering behavior
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Render a header control button.
Protected
_Render each configured application part using Handlebars templates.
Context data for the render operation
Options which configure application rendering behavior
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: 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
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: 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
_Replace 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
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: 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
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Synchronize 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
_Optional
animate?: booleanWhether to animate the close, or perform it instantaneously
Optional
closeKey?: booleanWhether the application was closed via keypress.
Optional
submitted?: booleanIs the application being closed because a form was submitted?
Protected
_When the Application is rendered, optionally update aspects of the window frame.
Options provided at render-time
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: stringUpdate the window title with a new value?
Protected
_Translate 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
Optional
options: AddListenerOptionsOptions which configure the event listener
Bring this Application window to the front of the rendering stack by increasing its z-index. Once ApplicationV1 is deprecated we should switch from _maxZ to ApplicationV2#maxZ We should also eliminate ui.activeWindow in favor of only ApplicationV2#frontApp
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
Optional
options: ChangeTabOptionsAdditional options which affect tab navigation
(default: {}
)
Close the Application, removing it from the DOM.
Optional
options: { animate?: boolean; closeKey?: boolean; submitted?: boolean }Options which modify how the application is closed.
Optional
animate?: booleanWhether to animate the close, or perform it instantaneously
Optional
closeKey?: booleanWhether the application was closed via keypress.
Optional
submitted?: booleanIs the application being closed because a form was submitted?
A Promise which resolves to the closed Application instance
Dispatch an event on this target.
The Event to dispatch
Was default behavior for the event prevented?
Restore the Application to its original dimensions.
Minimize the Application, collapsing it to a minimal header.
Protected
parseProtected
parseProtected
parseRemove an event listener for a certain type of event.
The type of event being removed
The listener function being removed
Render 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.
Optional
options: {Options which configure application rendering behavior.
A boolean is interpreted as the "force" option.
(default: {}
)
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: 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: {}
)
Optional
force?: 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.
Optional
isFirstRender?: booleanIs this render the first one for the application? This property is populated automatically.
Optional
parts?: string[]Some Application classes, for example the HandlebarsApplication, support re-rendering a subset of application parts instead of the full Application HTML.
Optional
position?: {A specific position at which to render the Application
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Optional
tab?: string | { [key: string]: undefined | 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.
Optional
window?: { controls?: boolean; icon?: string | false; title?: string }Updates to the Application window frame
Optional
controls?: booleanRe-render the window controls menu?
Optional
icon?: string | falseUpdate the window icon with a new value?
Optional
title?: 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
Optional
height?: number | "auto"Un-scaled pixels in height or "auto"
Optional
left?: numberWindow offset pixels from left
Optional
scale?: numberA numeric scaling factor applied to application dimensions
Optional
top?: numberWindow offset pixels from top
Optional
width?: number | "auto"Un-scaled pixels in width or "auto"
Optional
zIndex?: numberA z-index of the application relative to siblings
Programmatically submit an ApplicationV2 instance which implements a single top-level form.
Optional
submitOptions: 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.
Optional
expanded: null | booleanSet the controls visibility to a specific state.
Otherwise, the visible state is toggled from its current value.
null
is same as undefined
Optional
options: ToggleControlOptionsOptions to configure the toggling behavior
A Promise which resolves once the control expansion animation is complete
Protected
updateStatic
AddStatic
DeleteStatic
inheritanceIterate over the inheritance chain of this Application. The chain includes this Application itself and all parents until the base application is encountered.
Static
onStatic
parseParse 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
Static
waitWait for any images in the given element to load.
The element.
Application instance configuration options.