Posted 4 October 2022, 10:44 am EST - Updated 5 October 2022, 4:50 am EST
I want to trigger an event when user clicks on column header when he is try to sort the column, that way im going to be able to send a request to the server with the sort parameters.
So far i want to create a Server Side sorting by clicking the column header and avoid the sorting of the current items displayed (prevent default functionality)
Also i want to be able to have 3 states: asc, desc, none
if you click on the header sort asc:
if you click again sort desc:
if you click again none: