valor-software / ng2-table

Simple table extension with sorting, filtering, paging... for Angular2 apps
http://valor-software.github.io/ng2-table/
MIT License
553 stars 336 forks source link

Columns count change did not respond #592

Open TeodorKolev opened 6 years ago

TeodorKolev commented 6 years ago

If column is dynamically added, it is not shown in table. What I have tried:

 let item = {
        title: 'some item',
        name: 'someItem', filtering: {filtering: '', placeholder: '', sort: ''}
      };
      this.columns.splice(5, 0, item);
      this.tablePageService.columns = this.columns;
      this.tablePageService.config = this.config;
}

This did not makes table to refresh with shown new added column