Columns
property on a data table.addColumn
method on a data table to add a new column. owner
is added and its value is set to Amy Peters
for all rows.calc
function with a delegate. In the example below, the new column moreQuantity
is set to 10% more than quantity
. title
function to give any column a descriptive title. This will be set into the Title
property for the column in the resulting table.Title
value for any column. If one is not supplied, it will automatically create one. In doing so, it will parse camelCase or PascalCase field names and intelligently capitalize and space accordingly to come up with a friendly title.productOwner
column is not supplied. In the new table, the title will automatically be Product Owner
.quantity
column to a number with two decimal places using format
N2
.date_field
using the third party library moment.js.detail
and passes in the product
in that row. getColumn
method to get an existing column from a data table.order
column from a data table and sets it's Title
property.removeColumn
method to remove the column from the data table. This operation will remove the column from the Columns
collection and all the data for that column in each row.renameColumn
method to change the name of a column in a data table. This operation will change the name of the column in the Columns
collection and also the same property name on each object in every row in the data array.order
to orderNumber
.