Class SvelteComponent<Props, Events, Slots>
Type Parameters
Hierarchy
- SvelteComponent_1<Props, Events>
- SvelteComponent (View Summary)
- ApplicationShell
- EmptyApplicationShell
- TJSApplicationShell
- TJSGlassPane
- TJSIconButton
- TJSSlotButton
- TJSToggleIconButton
- TJSColordButton
- TJSColordPicker
- TJSScrollContainer
- TJSFocusWrap
- TJSIconFolder
- TJSSvgFolder
- TJSButton
- TJSInput
- TJSInputCheckbox
- TJSInputNumber
- TJSInputRange
- TJSInputRangeNumber
- TJSInputText
- TJSSelect
- TJSContentEdit
- TJSProseMirror
- TJSTinyMCE
- TJSFileButton
- TJSFileIconButton
- TJSFileSlotButton
- TJSSettingsEdit
- TJSSettingsSwap
- TJSThemeEditor
- FVTTSidebarPopout
- FVTTSidebarTab
- FVTTSidebarWrapper
- TJSDocumentCreate
- TJSDocumentDelete
- TJSDocumentImport
- TJSDocumentOwnership
- TJSFolderCreateUpdate
- TJSFolderDelete
- TJSFolderExport
- TJSFolderRemove
- TJSFolderRolltable
- TJSSlotLabel
- TJSToggleLabel
- TJSPositionControlLayer
- TJSSideSlideLayer
- TJSMediaContent
- TJSMenu
- SvelteComponentTyped
- SvelteComponent (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- new SvelteComponent<
Props extends Record<string, any> = any,
Events extends Record<string, any> = any,
Slots extends Record<string, any> = any,
>(
options: ComponentConstructorOptions<Props>,
): SvelteComponent<Props, Events, Slots> Type Parameters
Parameters
- options: ComponentConstructorOptions<Props>
Returns SvelteComponent<Props, Events, Slots>
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: