본문으로 건너뛰기

onAfterSort

Description

그리드에서 작업이 정렬된 후 발생합니다

onAfterSort: (field: string | GanttCallback, desc?: boolean, parent?: string | number) => void;

Parameters

  • field - (required) string | function - 그리드가 정렬된 열의 이름 또는 커스텀 정렬 함수
  • desc - (optional) boolean - 선택적, 정렬 방향: true - 내림차순, false - 오름차순
  • parent - (optional) string | number - 선택적, 지정된 부모의 가지에서만 정렬된 경우의 부모 작업의 ID

Example

gantt.attachEvent("onAfterSort",function(field, direction, parent){
// 여기에 코드 작성
});
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.