Abstract
Private
Optional
_browserPrivate
_createPrivate
Optional
_stateJMAP state
Extra parameters to send to the Foo/set
Protected
createsProtected
dataPrivate
Readonly
delayedRest
...args: any[]Private
Readonly
delayedRest
...args: any[]Protected
destroysProtected
getReadonly
idStore data in the browser storage so it will persist across sessions
Extra /set parameters that will reset after commit
Protected
updatesPrivate
browserPrivate
Get the browser storage object to save state to the browser
Protected
addPrivate
checkPrivate
Check's if we are up-to-date with the server and fetches updates if needed.
If no state is returned by the data source this function will ignore states and the data source should then always refresh data.
Private
commitAsk for confirmation and delete entities by ID
The ID's to delete
const tbl = this.projectTable!,
ids = tbl.rowSelection!.selected.map(index => tbl.store.get(index)!.id);
const result = await jmapds("Project3")
.confirmDestroy(ids);
if(result != false) {
btn.parent!.hide();
}
Private
createIDProtected
doFire an event
When a listener returns false this function will return false too.
Rest
...args: Parameters<DataSourceEventMap<AbstractDataSource<EntityType>>[K]>Get entities from the store
It will return a list of entities ordered by the requested ID's
Optional
ids: string[]Protected
getProtected
Abstract
internalProtected
Implements commit (save and destroy) to the remote source
Protected
Abstract
internalProtected
Implements getting entities from a remote source
Protected
Abstract
internalHandle the query to the remote
Protected
Abstract
internalAdd a listener
Optional
options: ObservableListenerOptsProtected
onQuery the server for a list of entity ID's
It takes filters and sort parameters.
Protected
relayProtected
removePrivate
returnProtected
setRemove listener
Generated using TypeDoc
Abstract DataSource class
A DataSource collection is a single source of truth for all types of data. When the DataSource changes it fires an event. All components and stores listen to the 'change' event to update themselves. This approach reduces the amount of code that has to be written and maintained.
Use a {@see DataSourceStore} in components to list data from datasources. The {@see Form} component can also load from a datasource.