Select and Calculate
Select
let data = [
{ product: "apples", order: "PRN001", quantity: 10, price: 5.5 },
{ product: "oranges", order: "PRN002", quantity: 15, price: 6 },
{ product: "bananas", order: "PRN002", quantity: 20, price: 7.5 }
];
let table = new wire.data.DataTable(data);
table = table.select("product", "price").table();Format
...
table = table.select().column("quantity").as("number_of_skus").table();Title
Number Formatting
Custom Formatting
Calculated Columns
Last updated
Was this helpful?