Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Sortable <ons-row><ons-col>
-
Hello,
I use <ons-row><ons-col> for display table of data. I need to add sorting feature to this table.
For HTML table, I use jquery table sorter(http://tablesorter.com/docs/) which works on <table><tr><thead>…<tr><tr>…
Any thoughts ? any query plugin etc?
Thanks for your help!
-
@mmike, I tried to play with <ons-row> and <ons-col>, unfortunately there is no corresponding <ons-grid> which would have header columns and and a rows collection that can be sorted.
Probably better to use a table instead without any plugins:
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_sort_table_desc
P.S. it would be nice to have <ons-grid> that acts like a grid.
Jamal
-
Not sure what mechanism you use to acquire and display the data, but I use Vue and LoDash to sort the data source rather than attempting to facilitate it in UI. Does that make sense?