Skip to main content

afterSort

fires after a column is sorted by clicking on its header

afterSort: (column: object, dir: string) => void;

Parameters:

The callback of the event is called with the following parameters:

  • column: object - an object with the configuration of a column
  • dir: string - the sorting direction ("desc", "asc")

Example

treegrid.events.on("afterSort", (column, dir) => {
console.log(column, dir);
});