跳到主要内容

rightside_text

Description​

定义任务条右侧显示的文本

rightside_text: (start: Date, end: Date, task: Task) => string | number | void;

Parameters​

  • start - (required) Date - 任务开始的日期
  • end - (required) Date - 任务计划完成的日期
  • task - (required) Task - 任务对象本身

Returns​

  • text - (string | number | void) - 将在 gantt 中显示的 HTML 字符串

Example​

gantt.templates.rightside_text = function(start, end, task){
return "ID: #" + task.id;
};
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.