A convenience datasource class that handle client side sorting, filtering, grouping and pagination.
Constructor
No documentation has been provided. |
Presentation |
Parameters| Name | Type | Description |
|---|
| data | T[] | undefined | the data similar to calling setData() method |
|
Methods
protected betweenFilter() |
|---|
No documentation has been provided. |
Presentationprotected betweenFilter(betweenOperator: string, value: any, criteriaValue: string): boolean;
|
Parameters| Name | Type | Description |
|---|
| betweenOperator | string | | | value | any | | | criteriaValue | string | |
Returnsboolean
|
protected filter() |
|---|
No documentation has been provided. |
Presentationprotected filter(result: T[], tableCriteria: TableCriteria[]): T[];
|
ParametersReturnsT[]
|
getAllData() |
|---|
Get all data in this datasource from the setData() method or from the constructor. |
Presentation |
ReturnsT[] -the data in a new array |
getData() |
|---|
Get data with the specified start index, maximum of maxRows is taken, matching the criteria in tableQuery. |
Presentation |
Parameters| Name | Type | Description |
|---|
| start | number | | | maxRows | number | | | tableQuery | TableQuery | |
Returns |
protected group() |
|---|
No documentation has been provided. |
Presentation |
Parameters| Name | Type | Description |
|---|
| result | T[] | | | groupBy | GroupBy | undefined | |
Returns |
setData() |
|---|
Set data to the datasource. |
PresentationsetData(data: T[]): void;
|
Parameters| Name | Type | Description |
|---|
| data | T[] | |
Returnsvoid
|
protected sort() |
|---|
No documentation has been provided. |
Presentationprotected sort(result: T[], sortings: SortingInfo[]): void;
|
ParametersReturnsvoid
|
protected toDate() |
|---|
No documentation has been provided. |
Presentationprotected toDate(value: string): string;
|
Parameters| Name | Type | Description |
|---|
| value | string | |
Returnsstring
|
protected toMonth() |
|---|
No documentation has been provided. |
Presentationprotected toMonth(value: string): string;
|
Parameters| Name | Type | Description |
|---|
| value | string | |
Returnsstring
|
protected toYear() |
|---|
No documentation has been provided. |
Presentationprotected toYear(value: string): string;
|
Parameters| Name | Type | Description |
|---|
| value | string | |
Returnsstring
|