Replies: 1 comment 1 reply
-
For each column you want to sort:
Define a single sort method:
sortDirection will be None, when sorting is removed for that column. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to monitor the user's sorting actions so that I may preserve the user's table state between sessions. I'm currently using the SortDirectionChanged eventcallback on the MudTableSortLabel component. It will pass me the sort direction, but I think I need to define a unique handler for every column in the table. I was hoping to find a way to define a single event handler method that would include a MudTableSortLabel parameter so that I could know which column was sorted by the user. Does anyone know of a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions