如何动态更改ng-smart-table中的标头?

时间:2019-05-08 15:56:33

标签: html css typescript uitableview angular6

我需要动态或在某些事件后更改ng-smart-table中的列名或标题。

我使用tableSettings定义字段列,例如:

 this.tableSettings3 = {
  defaultStyle: false,
  actions: false,
  hideSubHeader: true,
  {"the_geom":{"title":"the_geom"}, "namecol":{"title":"col1"}}
};

我用

重新加载数据
 this.dataSource3.load(res);
 this.dataSource3.refresh();

但是,即使在加载和刷新之前更改了表设置的列,表中的表似乎也没有改变。

0 个答案:

没有答案
相关问题