본문으로 건너뛰기

showTask

Description

지정된 작업을 화면에 표시합니다

showTask: (id: string | number) => void

Parameters

  • id - (required) string | number - 작업 ID

Example

var taskId = gantt.addTask({
id:10,
text:"Task #5",
start_date:"02-09-2013",
duration:28
}, "project_2");

gantt.showTask(10);

Details

기본 모드에서 Gantt는 showTask 메서드를 사용할 때 자체적으로 스크롤합니다. 그러나 자동 크기 조정 모드가 활성화되면, Gantt는 지정된 날짜를 표시하는 대신 페이지에 보이도록 컨테이너의 크기를 늘려 자체를 화면에 표시합니다. 이 문제를 해결하는 방법은 Scrolling to hidden elements 문서를 참고하세요.

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.