The base URI of the REST API. for example https://groupoffice.com/api
Optional
id: stringThe Data source ID. Will be appended to the base uri above. for Example if the ID is "users" the uri will be: "https://groupoffice.com/api/users"
Extra parameters to send to the Foo/set
Protected
createsProtected
dataProtected
destroysProtected
getReadonly
idStore data in the browser storage so it will persist across sessions
Extra /set parameters that will reset after commit
Protected
updatesReadonly
uriThe base URI of the REST API. for example https://groupoffice.com/api
Private
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.
Ask 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();
}
Protected
doFire an event
When a listener returns false this function will return false too.
Rest
...args: Parameters<DataSourceEventMap<RestDataSource<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
internalImplements commit (save and destroy) to the remote source
Protected
internalImplements getting entities from a remote source
Protected
internalHandle the query to the remote
Protected
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
requestProtected
setRemove listener
Generated using TypeDoc
Constructor