pretty-routes
pretty-routes copied to clipboard
Datatables
- Fixed header.
- Reorder columns.
@NightZpy Can you fix the conflicts. @garygreen once that's done can you merge this?
I was originally not much of a fan of this idea because I think paginating a list of routes is incredibly annoying - flicking through 40 different pages to find the route you want isn't a friendly experience.
Sorting columns could be useful, however I feel that the display order of the routes is extremely important, as routes are matched in order of priority - if we did allow for sorting of columns we should add a "Number" column of some kind, so you can reset the routes back to the order they will actually be matched in.
Finding routes / grepping can easily be done by just CTRL + F in the browser, it's pretty simple already, no?
Overall, I'm not sure adding data tables will add a huge amount of value except increase the complexity of an already simple package. But I'm not adverse to changing my way of thinking on it 😄
I understand that the question in this thread is very old and, apparently, @garygreen is busy with the main work, so I released my version from the fork as self-contained package. It's easier to look at a package than to talk about its changes: https://github.com/andrey-helldar/pretty-routes