|
|
|
@ -896,6 +896,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.
|
|
|
|
@ -1582,6 +1590,10 @@ class DatasetControl {
|
|
|
|
|
getDataset(option) {
|
|
|
|
|
return this.dataset.getDataset(option);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
findData(filter, option) {
|
|
|
|
|
return this.dataset.findData(filter, option);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setData(obj, option = {}) {
|
|
|
|
|
this.setPaging(obj, option);
|
|
|
|
|