Returns the content element if an application shell is mounted.
Content element.
Returns the target element or main element if no target defined.
Target element.
Returns the TJSPosition instance.
The TJSPosition instance.
Returns the reactive accessors & Svelte stores for SvelteFormApplication.
The reactive accessors & Svelte stores.
Returns the application state manager.
The application state manager.
Returns the Svelte helper class w/ various methods to access mounted Svelte components.
GetSvelteData
Provides a mechanism to update the UI options store for maximized.
Note: the sanity check is duplicated from Application.maximize the store is updated before performing the rest of animations. This allows application shells to remove / show any resize handlers correctly. Extra constraint data is stored in a saved position state in SvelteApplication.minimize to animate the content area.
Optional
opts: { Optional parameters.
Optional
animate?: booleanWhen true perform default maximizing animation.
Optional
duration?: numberControls content area animation duration in seconds.
Provides a mechanism to update the UI options store for minimized.
Note: the sanity check is duplicated from Application.minimize the store is updated before performing the rest of animations. This allows application shells to remove / show any resize handlers correctly. Extra constraint data is stored in a saved position state in SvelteApplication.minimize to animate the content area.
Optional
opts: { Optional parameters.
Optional
animate?: booleanWhen true perform default minimizing animation.
Optional
duration?: numberControls content area animation duration in seconds.
Provides a callback after all Svelte components are initialized.
Optional
mountedAppShell: MountedAppShellThe mounted app shell elements.
Provides a callback after the main application shell is remounted. This may occur during HMR / hot module
replacement or directly invoked from the elementRootUpdate
callback passed to the application shell component
context.
Optional
mountedAppShell: MountedAppShellThe mounted app shell elements.
Provides a Svelte aware extension to the Foundry FormApplication class to manage the app lifecycle appropriately. You can declaratively load one or more components from
defaultOptions
. You can declaratively load one or more components fromdefaultOptions
using a TJSSvelteConfig object in the SvelteApplicationOptionsoptions
SvelteApplicationOptions.svelte property.Note: It is not recommended that you use or depend on this class as it only exists to support HandlebarsFormApplication due to the OOP nature of the Foundry VTT platform. This should only be an interim or stepwise solution as you convert your package over to fully using TRL & Svelte.