Interface: DataModelInterface#
Table of contents#
Methods#
- apply
- getByPath
- getMeta
- getParameters
- getViewState
- onExecuteBegin
- onExecuteSuccess
- subscribe
- toJSON
- unsubscribe
Methods#
apply#
▸ apply(): void
Method to apply data, runs through each case: pivot, query, analytic, copy, virtual
Returns#
void
getByPath#
▸ getByPath(path
): DataModelInterface
Parameters#
Name | Type |
---|---|
path |
string |
Returns#
getMeta#
▸ getMeta(callback
): void
Get Meta
Parameters#
Name | Type |
---|---|
callback |
any |
Returns#
void
getParameters#
▸ getParameters(): Record
<string
, any
>
Get datasource parameters
Returns#
Record
<string
, any
>
getViewState#
▸ getViewState(): any
Get viewstate
Returns#
any
onExecuteBegin#
▸ onExecuteBegin(): void
Begin datasource execution
Returns#
void
onExecuteSuccess#
▸ onExecuteSuccess(data
, forceReset
, buffer?
, pivotMeta?
): any
on Successful datasource execution
Parameters#
Name | Type |
---|---|
data |
DCDS |
forceReset |
boolean |
buffer? |
ArrayBuffer |
pivotMeta? |
Object |
Returns#
any
subscribe#
▸ subscribe(key
, listener
, raw?
, pagingInfo?
): void
Subscribe to data
Parameters#
Name | Type |
---|---|
key |
string |
listener |
Subscriber |
raw? |
boolean |
pagingInfo? |
PagingInfoInterface |
Returns#
void
toJSON#
▸ toJSON(): Record
<string
, any
>
Returns#
Record
<string
, any
>
unsubscribe#
▸ unsubscribe(key
): void
Unsubscribe to data
Parameters#
Name | Type |
---|---|
key |
any |
Returns#
void