komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more
http://ka-table.com
MIT License
787 stars 58 forks source link

Display both up and down arrows for non sorted column #427

Closed dyaacov closed 4 months ago

dyaacov commented 4 months ago

Hi,

When my columns are not sorted, I would like to add both arrows so users can see that this column is sortable. is it possible?

I've found an example how to control the sortIcon but this event is invoked only AFTER I click a cell.

https://komarovalexander.github.io/ka-table/#/sorting

Thanks!

komarovalexander commented 4 months ago

hi @dyaacov you can show it in headCellContent, see the demo https://stackblitz.com/edit/table-sorting-ts-tseedw?file=Demo.tsx

dyaacov commented 4 months ago

Yep! Found it a minute ago :)

Thanks!