wire.data.DataModel
Field Properties
const model = new wire.data.DataModel({
Fields: [
{ Entity: "Metrics", Name: "cost_amt", Alias: "Cost", Format: "C2" },
{ Entity: "Product", Name: "line_no", Alias: "Line" },
{ Entity: "Time", Name: "week_start_date", Alias: "Week", Format: ((value) => {
return moment(value).format("MM/DD");
})
}
]
});
const source = new wire.data.DataSource("table", {
...
Model: model
});Entity Wildcards
Calculated Columns
Last updated
Was this helpful?