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 #
getQueryObserver #
▸ getQueryObserver(): Readable<QueryObserver<Data>>
Returns #
Readable<QueryObserver<Data>>
Defined in #
init #
▸ Optional init(config): void
Parameters #
Name | Type |
---|---|
config | Required<DataTableConfig<Data>> |
Returns #
void
Defined in #
onMount #
▸ Optional onMount(): void
Called by the datatable svelte component when it is mounted
Returns #
void
Defined in #
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