AlbertRapp / blogComments

0 stars 0 forks source link

posts/18_connecting_reactable_ojs/18_connecting_reactable_ojs #31

Open utterances-bot opened 4 months ago

utterances-bot commented 4 months ago

Albert Rapp - Interactive filters in tables with reactable

reactable is a great package to make interactive tables in R. And you can make your tables even more interactive by combining them with a tiny bit of JavaScript.

https://albert-rapp.de/posts/18_connecting_reactable_ojs/18_connecting_reactable_ojs

JauntyJJS commented 4 months ago

For the drop down, it seems that it is ordered by which group appears first from first row to the last. For the Island column, first it is Biscoe, Torgersen followed by Dream.

May I ask if it is possible to have the drop down ordered alphabetically or by a specific order ? Asking because a drop down of many groups (>5) can be hard to navigate if it is not in alphabetical order. If the group has numbers, for example 0 to 10 , people want to see the drop down go from 0, 1, 2, 3, ... 10 and not which number appears first ?