frequent / tableview

jQuery Mobile tableview - responsive table wrapper for JQM tables
29 stars 23 forks source link

Sorting in your demo doesnt seem to work #4

Open aureltime opened 11 years ago

aureltime commented 11 years ago

First, thanks for your great work, especially this plugin that i would like to use as i need to use tables on a responsive web app using jqm.

i saw that jqm is on the way to 1.4 and that filterbar should be a widget but we dont know when 1.4 will be out.

In the demo, sorting didnt work for me, just me ?

I want to use the column toggle tableview and have about 1000 rows to treat (maybe i wont need 1000 at first load, but i should be able to have the one i want using the filter, maybe before any display. I have several questions :

my easy solution is to use your plugin with the filter widget you added and according to this filter, display all relevant rows.

thanks for cooperation !

frequent commented 11 years ago

I did the prototype for the filterbar widget but have not had a lot of time to work on it, so I'm not sure if I will make it to 1.4 or if someone else on the JQM dev team took over.

Regarding sorting/pagination... I think the table widget should focus on UI and responsiveness and not provide any functionalities out-of-the-box (which would also include the filter as a matter of fact).

There are many good table plugins available which provide a rich feature set. My ideal table widget would just go on top of a 3rd party table plugin and handle the UI.

That's why I provide a sorting button without sorting functionality. Same for pagination and lazyloading - for me these are "data-operations", so nothing I would want to touch with JQM.

I played around a little with the table widget on this (prototype, which uses another lib I'm partially working on. Same here: I pull JSON data, dump to local storage and then use the libs complexQuery javascript-module to poll localstorage. When doing so, I can also pass sorting and start/end, so I just need to hook these parameters to button in my table widget and have my sorter/paginator. Keeps data and UI-handling separated, which I always prefer.

Anyway. Sorry if I cannot help right away. If you are looking for a good lazyloader, I can recommend this one. If you want to try and give JIO a try, just let me know. I'm happy to help here