본문으로 건너뛰기

leveling_delay_text

정보

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 object
  • delay - (required) number - the leveling_delay value of the task
  • unit - (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";
};

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.

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.