Class: DataTable<Props, Events, Slots>

skeleton.DataTable

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 called MyComponent. For Svelte+TypeScript users, you want to provide typings. Therefore you create a index.d.ts: ts import { SvelteComponent } from “svelte”; export class MyComponent extends SvelteComponent<{foo: string}> {}

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: svelte <script lang=“ts”> import { MyComponent } from “component-library”; </script> <MyComponent foo={'bar'} />

Type parameters #

Name Type
Props extends Record<string, any> = any
Events extends Record<string, any> = any
Slots extends Record<string, any> = any

Hierarchy #

  • SvelteComponent_1<Props, Events>

    DataTable

Indexable #

▪ [prop: string]: any

Constructors #

constructor #

new DataTable<Props, Events, Slots>(options)

Type parameters #

Name Type
Props extends Record<string, any> = any
Events extends Record<string, any> = any
Slots extends Record<string, any> = any

Parameters #

Name Type
options ComponentConstructorOptions<Props>

Overrides #

SvelteComponent_1<Props, Events\>.constructor

Defined in #

node_modules/svelte/types/index.d.ts:144

Properties #

$$ #

$$: any

PRIVATE API #

Do not use, may change at any time

Inherited from #

SvelteComponent_1.$$

Defined in #

node_modules/svelte/types/index.d.ts:102


$$events_def #

$$events_def: Events

For type checking capabilities only. Does not exist at runtime.

DO NOT USE! #

Defined in #

node_modules/svelte/types/index.d.ts:158


$$prop_def #

$$prop_def: Props

For type checking capabilities only. Does not exist at runtime.

DO NOT USE! #

Defined in #

node_modules/svelte/types/index.d.ts:151


$$set #

$$set: any

PRIVATE API #

Do not use, may change at any time

Inherited from #

SvelteComponent_1.$$set

Defined in #

node_modules/svelte/types/index.d.ts:109


$$slot_def #

$$slot_def: Slots

For type checking capabilities only. Does not exist at runtime.

DO NOT USE! #

Defined in #

node_modules/svelte/types/index.d.ts:165

Methods #

$capture_state #

$capture_state(): void

Returns #

void

Defined in #

node_modules/svelte/types/index.d.ts:167


$destroy #

$destroy(): void

Returns #

void

Inherited from #

SvelteComponent_1.$destroy

Defined in #

node_modules/svelte/types/index.d.ts:111


$inject_state #

$inject_state(): void

Returns #

void

Defined in #

node_modules/svelte/types/index.d.ts:169


$on #

$on<K>(type, callback): () => void

Type parameters #

Name Type
K extends string

Parameters #

Name Type
type K
callback undefined | null | (e: Events[K]) => void

Returns #

fn

▸ (): void

Returns #

void

Inherited from #

SvelteComponent_1.$on

Defined in #

node_modules/svelte/types/index.d.ts:113


$set #

$set(props): void

Parameters #

Name Type
props Partial<Props>

Returns #

void

Inherited from #

SvelteComponent_1.$set

Defined in #

node_modules/svelte/types/index.d.ts:115