https://i.stack.imgur.com/JIGKp.pngi need to find the amount and subtotal.
i need to calculate (qty*price)two columns values and store the result into another column(amount) of the ng2-smart-table
https://i.stack.imgur.com/JIGKp.pngi need to find the amount and subtotal.
i need to calculate (qty*price)two columns values and store the result into another column(amount) of the ng2-smart-table
This is a very smooth method to choose this problem
Total:{
title: 'Total',
valuePrepareFunction :(cell, row) =>{
return row.quantity * row.productPrice;
}
}