onAfterSort

当 grid 中的任务排序完成后触发

void onAfterSort(string|function field, [boolean desc,string|number parent] );
fieldstring|function用于排序的列名或自定义排序函数
descboolean可选,表示排序顺序:true 表示降序,false 表示升序
parentstring|number可选,如果排序仅限于特定分支,则为该父任务的 ID

Example

gantt.attachEvent("onAfterSort",function(field, direction, parent){
    // your code here
});

See also
Back to top