Is there a way to catch the click and/or right-click events on the headers of a power table?
Ideally, I’m looking for something like the “onPopupTrigger” extension function: I want to replace the default right-click menu with a menu where the user can sort and filter the data of a certain column, but where I keep control over the sorting by altering the source data (certain things need to stay in order).
But the “onPopupTrigger” only works on cells, not on table headers. Is there a way to catch this with generic mouse events? How do I know what column was clicked?