task_work
Description
Formats the stored work of a task for display
task_work: (task: Task) => string | number | void;
Parameters
taskis the task to display.
Returns
By default, the template returns task.work when a value is present or an empty string. Use getTaskWork when you need to read the calculated amount.
Example
gantt.config.columns = [
{ name: "text", tree: true, width: "*" },
{
name: "work",
label: gantt.locale.labels.column_work,
template: task => gantt.templates.task_work(task)
}
];
Related guides
Change log
- Added in v10.1.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.