Class FVTTSidebarTab
Hierarchy
- SvelteComponent<
FVTTSidebarTab.Props,
FVTTSidebarTab.Events,
FVTTSidebarTab.Slots,
>- FVTTSidebarTab (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
constructor
- new FVTTSidebarTab(
options: ComponentConstructorOptions<FVTTSidebarTab.Props>,
): FVTTSidebarTab Parameters
- options: ComponentConstructorOptions<FVTTSidebarTab.Props>
Returns FVTTSidebarTab
Accessors
anchorEl
- get anchorEl(): HTMLAnchorElement
Getter for anchorEl prop.
Returns HTMLAnchorElement
- set anchorEl(_: HTMLAnchorElement): void
Setter for anchorEl prop.
Parameters
Returns void
component
sidebarData
- get sidebarData(): any
Getter for sidebarData prop.
Returns any
- set sidebarData(_: any): void
Setter for sidebarData prop.
Parameters
- _: any
Returns void
Methods
$destroy
$on
- $on<K extends string>(
type: K,
callback: (e: CustomEvent<any>) => void,
): () => void Type Parameters
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
$set
- $set(props: Partial<FVTTSidebarTab.Props>): void
Parameters
- props: Partial<FVTTSidebarTab.Props>
Returns void
Base class for Svelte components with some minor dev-enhancements. Used when dev=true.
Can be used to create strongly typed Svelte components.
Example:
You have component library on npm called
component-library
, from which you export a component calledMyComponent
. For Svelte+TypeScript users, you want to provide typings. Therefore you create aindex.d.ts
:Typing this makes it possible for IDEs like VS Code with the Svelte extension to provide intellisense and to use the component like this in a Svelte file with TypeScript: