본문으로 건너뛰기

findCycles

정보

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

Description

차트에서 모든 의존성 루프를 반환합니다

findCycles: () => any[]

Returns

  • cycles - (array) - gantt에서 발견된 의존성 루프의 배열

Example

var cycles = gantt.findCycles();

Details

노트

이 메서드는 auto_scheduling 플러그인이 활성화되어 있어야 합니다.

각 요소는 cycles 배열은 루프를 형성하는 작업과 링크의 묶음입니다.

[ 
{
tasks: [//루프에 연결된 작업의 ID들],
links: [//루프에 연결된 링크의 ID들]
},
{

tasks: [...],
links: [...]
}
]

아래 예제를 확인해 보세요:

  • 태스크 #3의 ID는 10입니다
  • 태스크 #4.1의 ID는 12입니다
  • 태스크 #3의 끝에서 태스크 #4의 시작으로 향하는 링크의 ID는 1입니다
  • 태스크 #4.1의 끝에서 태스크 #3의 시작으로 향하는 링크의 ID는 2입니다

gantt.findCycles 메서드는 다음 값을 반환합니다:

[ 
{
tasks: ["10", "12"],
links: ["1", "2"]
}
]

Change log

  • 버전 4.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.