Class TJSDocumentCreate
Hierarchy
- SvelteComponent<
TJSDocumentCreate.Props,
TJSDocumentCreate.Events,
TJSDocumentCreate.Slots,
>- TJSDocumentCreate (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Accessors
Methods
Constructors
constructor
- new TJSDocumentCreate(
options: ComponentConstructorOptions<TJSDocumentCreate.Props>,
): TJSDocumentCreate Parameters
Returns TJSDocumentCreate
Accessors
data
documentCls
- get documentCls(): any
Getter for documentCls prop.
Returns any
- set documentCls(_: any): void
Setter for documentCls prop.
Parameters
- _: any
Returns void
pack
parent
renderSheet
- get renderSheet(): boolean
Getter for renderSheet prop.
Returns boolean
- set renderSheet(_: boolean): void
Setter for renderSheet prop.
Parameters
- _: boolean
Returns void
requestSubmit
- get requestSubmit(): () => void
Getter for requestSubmit prop.
Returns () => void
undefined
- get undefined(): any
Returns any
- set undefined(_: any): void
accessor
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<TJSDocumentCreate.Props>): void
Parameters
- props: Partial<TJSDocumentCreate.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: