Class TJSThemeStore
Index
Constructors
constructor
- new TJSTheme
Store (options): TJSThemeStore Parameters
- options: TJSThemeStoreOptions
Options
Returns TJSThemeStore
- options: TJSThemeStoreOptions
Methods
set
- set(themeData): TJSThemeStore
Sets the theme store with new data.
Parameters
- themeData: object
Returns TJSThemeStore
This theme store instance.
subscribe
- subscribe(handler): Unsubscriber
Parameters
- handler: Subscriber<{
[key: string]: object;
}>Callback function that is invoked on update / changes. Receives copy of the theme data.
Returns Unsubscriber
Unsubscribe function.
- handler: Subscriber<{
Must be constructed from a TJSGameSettings instance
init
/ initialize method called from theready
Foundry VTT hook.