baseline_text
info
This functionality is available in the PRO edition only.
Description
Specifies the text displayed inside the baseline element
baseline_text: (task: Task, baseline: Baseline, index: number) => string | number | void;
Parameters
task- (required) Task - the task object associated with the baselinebaseline- (required) Baseline - the baseline objectindex- (required) number - the index of the baseline in the task's baselines array
Returns
text- (string | number | void) - the HTML content to be injected as the innerHTML of the baseline element. The default template returns an empty string.
Example
gantt.templates.baseline_text = function(task, baseline, index) {
return "Baseline #" + (index + 1);
};
Related samples
Related API
Related Guides
Change log
- added in v9.0