Skip to main content

afterSort

fires after a column is sorted by clicking on its header

afterSort: (col: ICol, dir: Dirs) => void;

Parameters:

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

Example

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