Skip to content
Snippets Groups Projects
Commit cfe7d9e4 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[dome] fix array api

parent 5e9ed98e
No related branches found
No related tags found
No related merge requests found
...@@ -448,13 +448,18 @@ export class CompactModel<Key, Row> extends ArrayModel<Key, Row> { ...@@ -448,13 +448,18 @@ export class CompactModel<Key, Row> extends ArrayModel<Key, Row> {
Requires a final trigger to update views. */ Requires a final trigger to update views. */
updateData(data: Collection<Row>) { updateData(data: Collection<Row>) {
forEach(data, (row: Row) => this.setData(this.getkey(row), row)); forEach(data, (row: Row) => this.setData(this.getkey(row), row));
this.reload();
} }
/** /**
Replace all previous data with the new one. Replace all previous data with the new ones.
Finally triggers a reload. Finally triggers a reload.
*/ */
replaceAllDataWith(data: Collection<Row>) {
this.removeAllData();
this.updateData(data);
this.reload();
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment