Type Alias FVTTSidebarAddData
beforeId?: string;
condition?: boolean | (() => boolean);
icon: string | TJSSvelteConfig;
id: string;
mergeAppImpl?: object;
popoutApplication?: SvelteApplication;
popoutOptions?: object;
svelte: TJSSvelteConfig;
title?: string;
tooltip?: string;
}
Type declaration
Optional
beforeId ?: stringThe ID for the tab to place the new sidebar before. This must be an existing sidebar tab ID. THe stock Foundry sidebar tab IDs from left to right are:
Optional
condition?: boolean | (() => boolean)A boolean value or function to invoke that returns a boolean value to control sidebar replacement. This is executed in the
renderSidebar
callback internally.icon: string | TJSSvelteConfig
The FontAwesome icon css classes or a Svelte configuration object to load a custom Svelte component to use as the "icon".
id: string
The unique Sidebar ID / name. Used for CSS ID and retrieving the sidebar.
Optional
mergeApp ?: objectImpl Provides a custom base implementation for the object instance for this sidebar app stored in
globalThis.ui.<SIDEBAR ID>
.Optional
popoutApplication ?: SvelteApplicationProvides a custom SvelteApplication class to instantiate for the popout sidebar.
Optional
popoutOptions ?: objectProvides SvelteApplication options overrides for the default popout sidebar.
svelte: TJSSvelteConfig
A Svelte configuration object.
Optional
title?: stringThe popout application title text or i18n lang key.
Optional
tooltip?: stringThe sidebar tab tooltip text or i18n lang key.
The configuration object to add a Svelte sidebar.