Good day,
let’s say I want to merge the columns margin and profit together in this table. Then I can use updateRow
to update the individual row. But so far I tried, u need to assign the same datafield for smart adapter and smart table column, as in 'margin: number'
in the smart adapter and label: 'Margin', dataField: 'margin', dataType: 'number', templateElement: '<span>{{value}}%</span>'
in the smart table column.
Can I put two values in the datafield, like label: 'Margin and Profit', dataField: ['margin','profit], dataType: 'number', templateElement: '<span>Margin:{{value}}%</span>'<span>Profit: ${{value}}</span>