본문으로 건너뛰기

isReadonly

Description

지정된 작업/링크 또는 전체 Gantt가 읽기 전용인지 확인합니다

isReadonly: (item?: number | string | Task | Link) => boolean

Parameters

  • item - (optional) number | string | Task | Link - 선택적, 작업/링크의 ID 또는 객체. 미지정시, 메서드는 Gantt가 읽기 전용인지 확인합니다

Returns

  • mode - (boolean) - true, 만약 작업/링크 또는 Gantt가 읽기 전용이면. 그렇지 않으면 false

Example

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

gantt.isReadonly(10); // ->거짓

// 또는
gantt.isReadonly(gantt.getTask(10)); // ->거짓
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.