본문으로 건너뛰기

placeholder_task

Description

키보드로 작업 편집을 간소화하기 위해 작업 목록 끝에 빈 행을 추가합니다

placeholder_task: any

Example

gantt.config.placeholder_task = true;

// or
gantt.config.placeholder_task = {
// moves focus to the placeholder task after adding a new task
focusOnCreate: true
};

Default value: false

Details

  • 자리 표시 태스크는 작업 목록 끝에 자동으로 추가됩니다.
  • UI에서 수정되고 gantt.updateTask() 호출을 받으면 목록의 끝에 새 태스크가 추가됩니다.
  • 자리 표시 태스크는 type 값으로 감지할 수 있습니다:
if(task.type == gantt.config.types.placeholder){
// do something
}
  • Gantt가 삽입될 때 onTaskCreatedonAfterTaskAdd 이벤트를 발행합니다.
  • gantt.dataProcessor가 자리 표시 아이템에 대해 onBeforeUpdate 이벤트를 발행하지만 백엔드 요청은 발생시키지 않습니다.
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.