Zum Hauptinhalt springen

onAfterSort

Description

Wird ausgelöst, nachdem Aufgaben im Grid sortiert wurden

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

Parameters

  • field - (erforderlich) string | function - der Name der Spalte, nach der das Grid sortiert wurde, oder eine benutzerdefinierte Sortierfunktion
  • desc - (optional) boolean - optional, die Sortierrichtung: true - absteigend, false - aufsteigend
  • parent - (optional) string | number - optional, die ID der übergeordneten Aufgabe, falls die Aufgaben nur im Zweig des angegebenen Elternteils sortiert wurden

Example

gantt.attachEvent("onAfterSort",function(field, direction, parent){
// Fügen Sie hier Ihre benutzerdefinierte Logik ein
});
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.