Skip to content

Commit

Permalink
refresh model after "addRows" call
Browse files Browse the repository at this point in the history
  • Loading branch information
hyyan committed Jul 4, 2018
1 parent c94e9d6 commit 9cb1a44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/dist/bbj-grid-widget.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/report.html
Expand Up @@ -18,7 +18,7 @@
<body>
<div id="app"></div>
<script>
window.chartData = [{"label":"bbj-grid-widget.min.js","statSize":298041,"parsedSize":154975,"gzipSize":38845,"groups":[{"label":"node_modules","path":"./node_modules","statSize":268871,"groups":[{"label":"core-js","path":"./node_modules/core-js","statSize":9995,"groups":[{"label":"modules","path":"./node_modules/core-js/modules","statSize":9879,"groups":[{"id":0,"label":"_global.js","path":"./node_modules/core-js/modules/_global.js","statSize":369,"parsedSize":186,"gzipSize":147},{"id":1,"label":"_is-object.js","path":"./node_modules/core-js/modules/_is-object.js","statSize":110,"parsedSize":92,"gzipSize":90},{"id":2,"label":"_core.js","path":"./node_modules/core-js/modules/_core.js","statSize":122,"parsedSize":78,"gzipSize":95},{"id":3,"label":"_descriptors.js","path":"./node_modules/core-js/modules/_descriptors.js","statSize":184,"parsedSize":114,"gzipSize":109},{"id":5,"label":"_wks.js","path":"./node_modules/core-js/modules/_wks.js","statSize":358,"parsedSize":162,"gzipSize":149},{"id":6,"label":"_uid.js","path":"./node_modules/core-js/modules/_uid.js","statSize":162,"parsedSize":127,"gzipSize":133},{"id":7,"label":"_fails.js","path":"./node_modules/core-js/modules/_fails.js","statSize":104,"parsedSize":72,"gzipSize":77},{"id":8,"label":"_hide.js","path":"./node_modules/core-js/modules/_hide.js","statSize":286,"parsedSize":124,"gzipSize":102},{"id":28,"label":"_fails-is-regexp.js","path":"./node_modules/core-js/modules/_fails-is-regexp.js","statSize":251,"parsedSize":146,"gzipSize":128},{"id":29,"label":"_defined.js","path":"./node_modules/core-js/modules/_defined.js","statSize":162,"parsedSize":103,"gzipSize":113},{"id":30,"label":"_library.js","path":"./node_modules/core-js/modules/_library.js","statSize":24,"parsedSize":27,"gzipSize":47},{"id":31,"label":"_shared.js","path":"./node_modules/core-js/modules/_shared.js","statSize":427,"parsedSize":270,"gzipSize":221},{"id":32,"label":"_cof.js","path":"./node_modules/core-js/modules/_cof.js","statSize":106,"parsedSize":84,"gzipSize":96},{"id":33,"label":"_is-regexp.js","path":"./node_modules/core-js/modules/_is-regexp.js","statSize":289,"parsedSize":132,"gzipSize":136},{"id":34,"label":"_string-context.js","path":"./node_modules/core-js/modules/_string-context.js","statSize":314,"parsedSize":145,"gzipSize":137},{"id":35,"label":"_to-integer.js","path":"./node_modules/core-js/modules/_to-integer.js","statSize":161,"parsedSize":100,"gzipSize":107},{"id":36,"label":"_to-length.js","path":"./node_modules/core-js/modules/_to-length.js","statSize":215,"parsedSize":100,"gzipSize":111},{"id":37,"label":"_a-function.js","path":"./node_modules/core-js/modules/_a-function.js","statSize":125,"parsedSize":111,"gzipSize":108},{"id":38,"label":"_ctx.js","path":"./node_modules/core-js/modules/_ctx.js","statSize":520,"parsedSize":290,"gzipSize":157},{"id":39,"label":"_has.js","path":"./node_modules/core-js/modules/_has.js","statSize":120,"parsedSize":82,"gzipSize":88},{"id":40,"label":"_redefine.js","path":"./node_modules/core-js/modules/_redefine.js","statSize":1037,"parsedSize":460,"gzipSize":279},{"id":41,"label":"_property-desc.js","path":"./node_modules/core-js/modules/_property-desc.js","statSize":173,"parsedSize":109,"gzipSize":102},{"id":42,"label":"_to-primitive.js","path":"./node_modules/core-js/modules/_to-primitive.js","statSize":655,"parsedSize":329,"gzipSize":185},{"id":43,"label":"_dom-create.js","path":"./node_modules/core-js/modules/_dom-create.js","statSize":289,"parsedSize":124,"gzipSize":117},{"id":44,"label":"_ie8-dom-define.js","path":"./node_modules/core-js/modules/_ie8-dom-define.js","statSize":199,"parsedSize":131,"gzipSize":127},{"id":45,"label":"_an-object.js","path":"./node_modules/core-js/modules/_an-object.js","statSize":154,"parsedSize":108,"gzipSize":116},{"id":46,"label":"_object-dp.js","path":"./node_modules/core-js/modules/_object-dp.js","statSize":600,"parsedSize":275,"gzipSize":211},{"id":47,"label":"_export.js","path":"./node_modules/core-js/modules/_export.js","statSize":1601,"parsedSize":473,"gzipSize":319},{"id":48,"label":"es6.string.starts-with.js","path":"./node_modules/core-js/modules/es6.string.starts-with.js","statSize":762,"parsedSize":292,"gzipSize":220}],"parsedSize":4846,"gzipSize":1786},{"label":"fn","path":"./node_modules/core-js/fn","statSize":116,"groups":[{"label":"string","path":"./node_modules/core-js/fn/string","statSize":116,"groups":[{"id":49,"label":"starts-with.js","path":"./node_modules/core-js/fn/string/starts-with.js","statSize":116,"parsedSize":55,"gzipSize":74}],"parsedSize":55,"gzipSize":74}],"parsedSize":55,"gzipSize":74}],"parsedSize":4901,"gzipSize":1801},{"label":"ag-grid-components","path":"./node_modules/ag-grid-components","statSize":248765,"groups":[{"label":"dist","path":"./node_modules/ag-grid-components/dist","statSize":248765,"groups":[{"id":23,"label":"agc-basic.bundle.js","path":"./node_modules/ag-grid-components/dist/agc-basic.bundle.js","statSize":248632,"parsedSize":129957,"gzipSize":32244},{"id":24,"label":"agc-basic.bundle.js-exposed","path":"./node_modules/ag-grid-components/dist/agc-basic.bundle.js-exposed","statSize":133,"parsedSize":110,"gzipSize":109}],"parsedSize":130067,"gzipSize":32300}],"parsedSize":130067,"gzipSize":32300},{"label":"jss","path":"./node_modules/jss","statSize":10111,"groups":[{"id":25,"label":"jss.js","path":"./node_modules/jss/jss.js","statSize":10056,"parsedSize":3154,"gzipSize":1237},{"id":26,"label":"jss.js-exposed","path":"./node_modules/jss/jss.js-exposed","statSize":55,"parsedSize":69,"gzipSize":83}],"parsedSize":3223,"gzipSize":1271}],"parsedSize":138191,"gzipSize":34908},{"label":"buildin","path":"./buildin","statSize":489,"groups":[{"id":4,"label":"global.js","path":"./buildin/global.js","statSize":489,"parsedSize":158,"gzipSize":136}],"parsedSize":158,"gzipSize":136},{"label":"src","path":"./src","statSize":28641,"groups":[{"id":9,"label":"init.js","path":"./src/init.js","statSize":7482,"parsedSize":4868,"gzipSize":1679},{"label":"api","path":"./src/api","statSize":9814,"groups":[{"id":10,"label":"jss.js","path":"./src/api/jss.js","statSize":568,"parsedSize":232,"gzipSize":170},{"label":"enterprise","path":"./src/api/enterprise","statSize":854,"groups":[{"id":11,"label":"toolpanel.js","path":"./src/api/enterprise/toolpanel.js","statSize":854,"parsedSize":416,"gzipSize":243}],"parsedSize":416,"gzipSize":243},{"id":12,"label":"state.js","path":"./src/api/state.js","statSize":418,"parsedSize":293,"gzipSize":211},{"id":13,"label":"cells.js","path":"./src/api/cells.js","statSize":2078,"parsedSize":1090,"gzipSize":489},{"id":14,"label":"rows.js","path":"./src/api/rows.js","statSize":3384,"parsedSize":1636,"gzipSize":637},{"id":15,"label":"columns.js","path":"./src/api/columns.js","statSize":2512,"parsedSize":1177,"gzipSize":532}],"parsedSize":4844,"gzipSize":1517},{"id":16,"label":"api.js","path":"./src/api.js","statSize":1746,"parsedSize":996,"gzipSize":234},{"label":"events","path":"./src/events","statSize":5529,"groups":[{"id":17,"label":"editing.js","path":"./src/events/editing.js","statSize":2553,"parsedSize":1300,"gzipSize":619},{"id":18,"label":"selections.js","path":"./src/events/selections.js","statSize":1211,"parsedSize":530,"gzipSize":303},{"id":19,"label":"utilities.js","path":"./src/events/utilities.js","statSize":1191,"parsedSize":667,"gzipSize":374},{"id":20,"label":"pollyfills.js","path":"./src/events/pollyfills.js","statSize":574,"parsedSize":316,"gzipSize":202}],"parsedSize":2813,"gzipSize":1101},{"id":21,"label":"events.js","path":"./src/events.js","statSize":1251,"parsedSize":690,"gzipSize":216},{"id":22,"label":"utilities.js","path":"./src/utilities.js","statSize":1484,"parsedSize":655,"gzipSize":375},{"id":27,"label":"index.js","path":"./src/index.js","statSize":1335,"parsedSize":701,"gzipSize":223}],"parsedSize":15567,"gzipSize":4107},{"id":50,"label":"multi core-js/fn/string/starts-with.js ./src/index.js","path":"./multi core-js/fn/string/starts-with.js ./src/index.js","statSize":40,"parsedSize":38,"gzipSize":58}]}];
window.chartData = [{"label":"bbj-grid-widget.min.js","statSize":298094,"parsedSize":155025,"gzipSize":38849,"groups":[{"label":"node_modules","path":"./node_modules","statSize":268871,"groups":[{"label":"core-js","path":"./node_modules/core-js","statSize":9995,"groups":[{"label":"modules","path":"./node_modules/core-js/modules","statSize":9879,"groups":[{"id":0,"label":"_global.js","path":"./node_modules/core-js/modules/_global.js","statSize":369,"parsedSize":186,"gzipSize":147},{"id":1,"label":"_is-object.js","path":"./node_modules/core-js/modules/_is-object.js","statSize":110,"parsedSize":92,"gzipSize":90},{"id":2,"label":"_core.js","path":"./node_modules/core-js/modules/_core.js","statSize":122,"parsedSize":78,"gzipSize":95},{"id":3,"label":"_descriptors.js","path":"./node_modules/core-js/modules/_descriptors.js","statSize":184,"parsedSize":114,"gzipSize":109},{"id":5,"label":"_wks.js","path":"./node_modules/core-js/modules/_wks.js","statSize":358,"parsedSize":162,"gzipSize":149},{"id":6,"label":"_uid.js","path":"./node_modules/core-js/modules/_uid.js","statSize":162,"parsedSize":127,"gzipSize":133},{"id":7,"label":"_fails.js","path":"./node_modules/core-js/modules/_fails.js","statSize":104,"parsedSize":72,"gzipSize":77},{"id":8,"label":"_hide.js","path":"./node_modules/core-js/modules/_hide.js","statSize":286,"parsedSize":124,"gzipSize":102},{"id":28,"label":"_fails-is-regexp.js","path":"./node_modules/core-js/modules/_fails-is-regexp.js","statSize":251,"parsedSize":146,"gzipSize":128},{"id":29,"label":"_defined.js","path":"./node_modules/core-js/modules/_defined.js","statSize":162,"parsedSize":103,"gzipSize":113},{"id":30,"label":"_library.js","path":"./node_modules/core-js/modules/_library.js","statSize":24,"parsedSize":27,"gzipSize":47},{"id":31,"label":"_shared.js","path":"./node_modules/core-js/modules/_shared.js","statSize":427,"parsedSize":270,"gzipSize":221},{"id":32,"label":"_cof.js","path":"./node_modules/core-js/modules/_cof.js","statSize":106,"parsedSize":84,"gzipSize":96},{"id":33,"label":"_is-regexp.js","path":"./node_modules/core-js/modules/_is-regexp.js","statSize":289,"parsedSize":132,"gzipSize":136},{"id":34,"label":"_string-context.js","path":"./node_modules/core-js/modules/_string-context.js","statSize":314,"parsedSize":145,"gzipSize":137},{"id":35,"label":"_to-integer.js","path":"./node_modules/core-js/modules/_to-integer.js","statSize":161,"parsedSize":100,"gzipSize":107},{"id":36,"label":"_to-length.js","path":"./node_modules/core-js/modules/_to-length.js","statSize":215,"parsedSize":100,"gzipSize":111},{"id":37,"label":"_a-function.js","path":"./node_modules/core-js/modules/_a-function.js","statSize":125,"parsedSize":111,"gzipSize":108},{"id":38,"label":"_ctx.js","path":"./node_modules/core-js/modules/_ctx.js","statSize":520,"parsedSize":290,"gzipSize":157},{"id":39,"label":"_has.js","path":"./node_modules/core-js/modules/_has.js","statSize":120,"parsedSize":82,"gzipSize":88},{"id":40,"label":"_redefine.js","path":"./node_modules/core-js/modules/_redefine.js","statSize":1037,"parsedSize":460,"gzipSize":279},{"id":41,"label":"_property-desc.js","path":"./node_modules/core-js/modules/_property-desc.js","statSize":173,"parsedSize":109,"gzipSize":102},{"id":42,"label":"_to-primitive.js","path":"./node_modules/core-js/modules/_to-primitive.js","statSize":655,"parsedSize":329,"gzipSize":185},{"id":43,"label":"_dom-create.js","path":"./node_modules/core-js/modules/_dom-create.js","statSize":289,"parsedSize":124,"gzipSize":117},{"id":44,"label":"_ie8-dom-define.js","path":"./node_modules/core-js/modules/_ie8-dom-define.js","statSize":199,"parsedSize":131,"gzipSize":127},{"id":45,"label":"_an-object.js","path":"./node_modules/core-js/modules/_an-object.js","statSize":154,"parsedSize":108,"gzipSize":116},{"id":46,"label":"_object-dp.js","path":"./node_modules/core-js/modules/_object-dp.js","statSize":600,"parsedSize":275,"gzipSize":211},{"id":47,"label":"_export.js","path":"./node_modules/core-js/modules/_export.js","statSize":1601,"parsedSize":473,"gzipSize":319},{"id":48,"label":"es6.string.starts-with.js","path":"./node_modules/core-js/modules/es6.string.starts-with.js","statSize":762,"parsedSize":292,"gzipSize":220}],"parsedSize":4846,"gzipSize":1786},{"label":"fn","path":"./node_modules/core-js/fn","statSize":116,"groups":[{"label":"string","path":"./node_modules/core-js/fn/string","statSize":116,"groups":[{"id":49,"label":"starts-with.js","path":"./node_modules/core-js/fn/string/starts-with.js","statSize":116,"parsedSize":55,"gzipSize":74}],"parsedSize":55,"gzipSize":74}],"parsedSize":55,"gzipSize":74}],"parsedSize":4901,"gzipSize":1801},{"label":"ag-grid-components","path":"./node_modules/ag-grid-components","statSize":248765,"groups":[{"label":"dist","path":"./node_modules/ag-grid-components/dist","statSize":248765,"groups":[{"id":23,"label":"agc-basic.bundle.js","path":"./node_modules/ag-grid-components/dist/agc-basic.bundle.js","statSize":248632,"parsedSize":129957,"gzipSize":32244},{"id":24,"label":"agc-basic.bundle.js-exposed","path":"./node_modules/ag-grid-components/dist/agc-basic.bundle.js-exposed","statSize":133,"parsedSize":110,"gzipSize":109}],"parsedSize":130067,"gzipSize":32300}],"parsedSize":130067,"gzipSize":32300},{"label":"jss","path":"./node_modules/jss","statSize":10111,"groups":[{"id":25,"label":"jss.js","path":"./node_modules/jss/jss.js","statSize":10056,"parsedSize":3154,"gzipSize":1237},{"id":26,"label":"jss.js-exposed","path":"./node_modules/jss/jss.js-exposed","statSize":55,"parsedSize":69,"gzipSize":83}],"parsedSize":3223,"gzipSize":1271}],"parsedSize":138191,"gzipSize":34908},{"label":"buildin","path":"./buildin","statSize":489,"groups":[{"id":4,"label":"global.js","path":"./buildin/global.js","statSize":489,"parsedSize":158,"gzipSize":136}],"parsedSize":158,"gzipSize":136},{"label":"src","path":"./src","statSize":28694,"groups":[{"id":9,"label":"init.js","path":"./src/init.js","statSize":7482,"parsedSize":4868,"gzipSize":1679},{"label":"api","path":"./src/api","statSize":9867,"groups":[{"id":10,"label":"jss.js","path":"./src/api/jss.js","statSize":568,"parsedSize":232,"gzipSize":170},{"label":"enterprise","path":"./src/api/enterprise","statSize":854,"groups":[{"id":11,"label":"toolpanel.js","path":"./src/api/enterprise/toolpanel.js","statSize":854,"parsedSize":416,"gzipSize":243}],"parsedSize":416,"gzipSize":243},{"id":12,"label":"state.js","path":"./src/api/state.js","statSize":418,"parsedSize":293,"gzipSize":211},{"id":13,"label":"cells.js","path":"./src/api/cells.js","statSize":2078,"parsedSize":1090,"gzipSize":489},{"id":14,"label":"rows.js","path":"./src/api/rows.js","statSize":3437,"parsedSize":1686,"gzipSize":639},{"id":15,"label":"columns.js","path":"./src/api/columns.js","statSize":2512,"parsedSize":1177,"gzipSize":532}],"parsedSize":4894,"gzipSize":1522},{"id":16,"label":"api.js","path":"./src/api.js","statSize":1746,"parsedSize":996,"gzipSize":234},{"label":"events","path":"./src/events","statSize":5529,"groups":[{"id":17,"label":"editing.js","path":"./src/events/editing.js","statSize":2553,"parsedSize":1300,"gzipSize":619},{"id":18,"label":"selections.js","path":"./src/events/selections.js","statSize":1211,"parsedSize":530,"gzipSize":303},{"id":19,"label":"utilities.js","path":"./src/events/utilities.js","statSize":1191,"parsedSize":667,"gzipSize":374},{"id":20,"label":"pollyfills.js","path":"./src/events/pollyfills.js","statSize":574,"parsedSize":316,"gzipSize":202}],"parsedSize":2813,"gzipSize":1101},{"id":21,"label":"events.js","path":"./src/events.js","statSize":1251,"parsedSize":690,"gzipSize":216},{"id":22,"label":"utilities.js","path":"./src/utilities.js","statSize":1484,"parsedSize":655,"gzipSize":375},{"id":27,"label":"index.js","path":"./src/index.js","statSize":1335,"parsedSize":701,"gzipSize":223}],"parsedSize":15617,"gzipSize":4111},{"id":50,"label":"multi core-js/fn/string/starts-with.js ./src/index.js","path":"./multi core-js/fn/string/starts-with.js ./src/index.js","statSize":40,"parsedSize":38,"gzipSize":58}]}];
window.defaultSizes = "parsed";
</script>
</body>
Expand Down
1 change: 1 addition & 0 deletions js/src/api/rows.js
Expand Up @@ -111,4 +111,5 @@ export function gw_removeRow(index) {

export function gw_addRows(index,rows) {
gw_options.api.updateRowData({add: rows, addIndex: index});
gw_options.api.refreshClientSideRowModel('group');
}

0 comments on commit 9cb1a44

Please sign in to comment.