본문으로 건너뛰기

필터링 작업

필터링은 간트 차트에 렌더링되는 작업의 수와 특성을 관리할 수 있게 해줍니다. 예를 들어 특정 작업자에게 할당된 작업이나 긴급 우선순위를 가진 작업을 표시하기 위해 필터링을 사용할 수 있습니다.

참고: dhtmlxGantt는 클라이언트 측 필터링을 지원합니다.

filtering

데이터를 필터링하려면 onBeforeTaskDisplay 이벤트를 사용하고 다음을 반환합니다:

  • true, 표시하려는 작업의 경우
  • false, 표시하지 않으려는 작업의 경우

우선 순위가 높은 작업만 표시하기

gantt.attachEvent("onBeforeTaskDisplay", function(id, task){
if (task.priority == "high"){
return true;
}
return false;
});

기본 필터링

분할 작업의 데이터를 필터링하려면 onBeforeSplitTaskDisplay 이벤트를 적용하세요.

필터링 작업 구현 방법을 보여주는 비디오 가이드를 확인해 보세요.

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.