본문으로 건너뛰기

histogram_cell_label

정보

이 기능은 PRO 에디션에서만 사용할 수 있습니다.

Description

셀 안의 레이블 정의

histogram_cell_label: (start_date: Date, end_date: Date, resource: any, tasks: Array<Task>, assignments: any[]) => string | number | void;

Parameters

  • start_date - (필수) Date - 스케일 셀의 시작 날짜
  • end_date - (필수) Date - 스케일 셀의 종료 날짜
  • resource - (필수) object - 리소스 객체
  • tasks - (필수) Array - <Task> 지정된 리소스에 할당되고 셀의 시작일과 종료일과 겹치는 작업들
  • assignments - (필수) array - 지정된 시작일과 종료일 동안 작업에 할당된 리소스 할당들

Returns

  • label - (string | number | void) - 히스토그램 셀 안의 레이블에 대한 HTML 텍스트

Example

gantt.templates.histogram_cell_label = function(start_date,end_date,resource,tasks,
assignments){
return tasks.length * 8;
};

Details

노트

"assignments" 인자는 process_resource_assignments 설정이 활성화될 때에만 사용할 수 있습니다.

Change log

  • assignments 매개변수는 버전 7.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.