Class: AbstractDataSource<Data>
index.AbstractDataSource
Type parameters #
Name |
---|
Data |
Hierarchy #
AbstractDataSource
Implements #
- IDataSource<Data>
Constructors #
constructor #
• new AbstractDataSource<Data>()
Type parameters #
Name |
---|
Data |
Methods #
getQueryObserver #
▸ getQueryObserver(): Readable<QueryObserver<Data>>
Returns #
Readable<QueryObserver<Data>>
Implementation of #
Defined in #
dataSource/AbstractDataSource.ts:26
init #
▸ init(config): void
Parameters #
Name | Type |
---|---|
config | Required<DataTableConfig<Data>> |
Returns #
void
Implementation of #
Defined in #
dataSource/AbstractDataSource.ts:22
requestData #
▸ Abstract 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