본문으로 건너뛰기

tooltip_text

Description

툴팁에 표시될 텍스트를 설정합니다

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

Parameters

  • start - (required) Date - 작업이 시작될 예정인 날짜
  • end - (required) Date - 작업이 완료될 예정인 날짜
  • task - (required) Task - 작업 객체

Returns

  • text - (string | void) - 간트 툴팁에 표시될 HTML 문자열

Example

gantt.templates.tooltip_text = function(start,end,task){
return "<b>Task:</b> "+task.text+"<br/><b>Start date:</b> " +
gantt.templates.tooltip_date_format(start)+
"<br/><b>End date:</b> "+gantt.templates.tooltip_date_format(end);
};

Details

노트

이 템플릿은 tooltip 확장의 일부이므로, tooltip 플러그인이 활성화되어 있어야 합니다. 자세한 내용은 Gantt 요소의 툴팁 문서를 참고하세요.