使用多个数据源的g2-智能表格

时间:2019-04-02 21:38:25

标签: angular typescript ng2-smart-table

我有ng2-smart-table,其中填充了一个来源的数据(来自Web API的http.get方法)。该表有一个列必须从其他源检索数据,但是似乎无法为每个列更改源,因此该列保持为空。

尝试在特定列的设置/列参数中添加不同的“源”。

这些是从http.get('http://localhost:60000/api/apartments');接收数据的列;

number:{title:'number'},
floor: {title: 'Floor'},  
houseId:{title: 'houseId'}

前三列正确填充了数据,现在我必须在表中添加第四列,该表使用不同的源this.http.get('http://localhost:60000/api/houses');

houseAddress:{title: 'houseId'}

我尝试过的所有内容,第四列都保持空白,看来没有办法分别更改每一列的数据源。如果属实,那么如何解决?

0 个答案:

没有答案