Commit 94dadd0c authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[dome] fix array api

parent a75b4445
......@@ -448,13 +448,18 @@ export class CompactModel<Key, Row> extends ArrayModel<Key, Row> {
Requires a final trigger to update views. */
updateData(data: Collection<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.
*/
replaceAllDataWith(data: Collection<Row>) {
this.removeAllData();
this.updateData(data);
this.reload();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment