我在我的 angular4 应用程序中使用 wijmo 网格。问题是,在将行转换为列,将列转换为 wijmo 网格中的行时。我怎样才能实现wijmo网格的转置..?
data = this.getData();
getData() {
let countries = 'US,Germany,UK,Japan,Italy,Greece'.split(','),
data = [];
for (let i = 0; i < countries.length; i++) {
data.push({
country: countries[i],
sales: Math.random() * 10000,
expenses: Math.random() * 5000,
downloads: Math.round(Math.random() * 20000)
});
}
return new CollectionView(data);
}
HTML:
<wj-flex-grid [itemsSource]="data">
</wj-flex-grid>