【发布时间】:2020-01-03 18:34:13
【问题描述】:
我需要通过计算两列的值在 ng2-smart-table 中创建一个自定义列。
我尝试使用 valuePrepareFunction() 但它不起作用
OrderQuantity:{
title: 'OrderQuantity',
},
UnitPrice:{
title: 'UnitPrice',
},
Total:{
title: 'Total',
type: 'custom',
//Need to get total by : OrderQuantity*UnitPrice
},
我需要通过 = OrderQuantity*UnitPrice 获得总值
【问题讨论】: