|
|
|
@ -897,6 +897,14 @@ class Dataset {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
findData(filter, option) {
|
|
|
|
|
let found = this._items.filter(item => filter(item));
|
|
|
|
|
if ("item" == option)
|
|
|
|
|
return found;
|
|
|
|
|
|
|
|
|
|
return found.map(item => item.data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**Returns whether the Dataset is dirty.
|
|
|
|
|
* A Dataset is dirty if it has user data that is either added, modified, or removed.
|
|
|
|
|
* @returns {boolean} whether the Dataset is dirty
|
|
|
|
@ -1583,6 +1591,10 @@ class DatasetControl {
|
|
|
|
|
return this.dataset.getDataset(option);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
findData(filter, option) {
|
|
|
|
|
return this.dataset.findData(filter, option);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setData(obj, option = {}) {
|
|
|
|
|
this.setPaging(obj, option);
|
|
|
|
|
this.dataset.setData(obj, option);
|
|
|
|
|