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?