columns for quantity, price, subtotal
columns for quantity, price, subtotal
boudga
Posts: 19Questions: 4Answers: 0
How would I add columns to my existing datatables data coming from the database that would be for me to input quantity, price, and when i added those two would reflect a subtotal in the third column?
I am kind of wanting to make a table based invoice of sorts
Answers
Editor will let you input the data, and then use a renderer to calculate the third data point from the other two.
Allan
i added a column like this:
{"data": null, "defaultContent": "0.00"}
Can you please provide an example?
Of the renderer?
(assuming you are using objects that have
quantity
andprice
properties).Allan