Skip to main content

headerCellMouseDown

fires before releasing the left mouse button when clicking on a grid header cell

[GridEvents.headerCellMouseDown]: (cell: IHeader, column: ICol, event: MouseEvent & TouchEvent) => void;

Parameters:

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

  • cell: IHeader - an object with a header cell configuration
  • column: ICol - an object with a column configuration
  • event: MouseEvent & TouchEvent - a native HTML event object

Example

grid.events.on("headerCellMouseDown", (cell, column, event) => {
// your logic here
});

Related sample: Grid. Events