Interface: IDataSource<Data>

index.IDataSource

Type parameters #

Name
Data

Implemented by #

Methods #

afterNavigate #

▸ Optional afterNavigate(): void

Hooks into SvelteKits afterNavigate hook

Returns #

void

Defined in #

dataSource/IDataSource.ts:26


getQueryObserver #

getQueryObserver(): Readable<QueryObserver<Data>>

Returns #

Readable<QueryObserver<Data>>

Defined in #

dataSource/IDataSource.ts:16


init #

▸ Optional init(config): void

Parameters #

Name Type
config Required<DataTableConfig<Data>>

Returns #

void

Defined in #

dataSource/IDataSource.ts:7


onMount #

▸ Optional onMount(): void

Called by the datatable svelte component when it is mounted

Returns #

void

Defined in #

dataSource/IDataSource.ts:21


requestData #

requestData(data): void

Called to retrieve the initial datatable entries and everytime the request changes, for example when the user loads the next page, sorts the entries or searches for something

Parameters #

Name Type Description
data PaginatedListRequest<Data> the request data to be passed through to the server

Returns #

void

Defined in #

dataSource/IDataSource.ts:14