본문으로 건너뛰기

isTaskExists

Description

지정된 작업이 존재하는지 확인합니다

isTaskExists: (id: string | number) => boolean

Parameters

  • id - (필수) string | number - 작업 아이디

Returns

  • task - (boolean) - true, 해당 작업이 존재하면. 그렇지 않으면, false

Example

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

gantt.isTaskExists(10); // ->true
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.