leveling_delay_text
Info
This functionality is available in the PRO edition only.
Description
Specifies the text of the resource leveling delay area
leveling_delay_text: (task: Task, delay: number, unit: string) => string | number | void;
Parameters
task- (required) Task - the task objectdelay- (required) number - theleveling_delayvalue of the taskunit- (required) string - the unit of the delay, the value of the duration_unit config
Returns
text- (string | number | void) - the HTML content of the delay area. Its text is also used as the tooltip of the area. The default template returns the delay with a short unit name, for example "+2d".
Example
gantt.config.leveling_delays = true;
gantt.templates.leveling_delay_text = function(task, delay, unit) {
return "delay " + delay + " d";
};
Related samples
Details
The template is used when the leveling_delays config is enabled. If the area is 40 px wide or less, Gantt does not show the text inside it. The tooltip still shows the text.
Related API
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.