Class: AbstractDataSource<Data>

index.AbstractDataSource

Type parameters #

Name
Data

Hierarchy #

Implements #

Constructors #

constructor #

new AbstractDataSource<Data>()

Type parameters #

Name
Data

Methods #

getQueryObserver #

getQueryObserver(): Readable<QueryObserver<Data>>

Returns #

Readable<QueryObserver<Data>>

Implementation of #

IDataSource.getQueryObserver

Defined in #

dataSource/AbstractDataSource.ts:26


init #

init(config): void

Parameters #

Name Type
config Required<DataTableConfig<Data>>

Returns #

void

Implementation of #

IDataSource.init

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

Implementation of #

IDataSource.requestData

Defined in #

dataSource/AbstractDataSource.ts:46