Get sort state from columnDef?
Hey im trying to style the header of a column depending on whether its id matches any in the sort state array. I see theres:
which returns the direction of the columns sort, but I cant figure out how to get the full table's sort state.
Any ideas? Thank you!
1 Reply
passive-yellowOP•3y ago
Is this not possible in columnDefs maybe, the sorting example puts this logic where the table gets rendered (data-table.tsx)
ohhhh
isSorted() 😂
didnt realise it had a false state