본문으로 건너뛰기

leftside_text

Description

왼쪽 사이드의 작업 바에 할당될 텍스트를 지정합니다

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

Parameters

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

Returns

  • text - (string | number | void) - Gantt 차트에서 렌더링될 HTML 텍스트

Example

const formatter = gantt.ext.formatters.durationFormatter({
format: ["day"]
});

gantt.templates.leftside_text = function(start, end, task){
return formatter.format(task.duration);
};
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.