@intellegens/cornerstone-client 0.0.9999-alpha-23 → 0.0.9999-alpha-24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,6 +98,10 @@ export declare class CollectionViewAdapter<TKey, TDto extends IIdentifiable<TKey
|
|
|
98
98
|
* @param pageSize
|
|
99
99
|
*/
|
|
100
100
|
setPageSize(pageSize: number): Promise<TDto[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Refreshes the data by re-fetching the current page
|
|
103
|
+
*/
|
|
104
|
+
refreshData(): Promise<TDto[]>;
|
|
101
105
|
private _totalItemCount;
|
|
102
106
|
/**
|
|
103
107
|
* Returns the total count value of the collection.
|
|
@@ -133,6 +133,12 @@ export class CollectionViewAdapter {
|
|
|
133
133
|
this._currentOptions.pagination.pageNumber = 1; // Reset to first page
|
|
134
134
|
return this._fetchCurrentPageData();
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Refreshes the data by re-fetching the current page
|
|
138
|
+
*/
|
|
139
|
+
refreshData() {
|
|
140
|
+
return this._fetchCurrentPageData();
|
|
141
|
+
}
|
|
136
142
|
_totalItemCount = -1;
|
|
137
143
|
/**
|
|
138
144
|
* Returns the total count value of the collection.
|
package/package.json
CHANGED
|
@@ -204,6 +204,13 @@ export class CollectionViewAdapter<TKey, TDto extends IIdentifiable<TKey>, TDeta
|
|
|
204
204
|
return this._fetchCurrentPageData();
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Refreshes the data by re-fetching the current page
|
|
209
|
+
*/
|
|
210
|
+
public refreshData() {
|
|
211
|
+
return this._fetchCurrentPageData();
|
|
212
|
+
}
|
|
213
|
+
|
|
207
214
|
private _totalItemCount = -1;
|
|
208
215
|
|
|
209
216
|
/**
|