-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feature request: make listview filter a stand alone widget #5629
Comments
This would be really useful as an extension. Seems like we'd need to change the listview filter code to make this work? |
@arschmitz was planning on turning the listview filter into a real widget extension for 1.4. Would be great if we can make it a generic one. Related feature request from @aliok #2304 and @poonkave #5522 (filter for custom selects) |
@toddparker : I just replaced the whole listview.filter with the filter widget, so yes, change required :-) I will try to commit tomorrow, then you can have a look. @arschmitz, @uGoMobi: it shouldn't be difficult to continue with the code I did. I'm more or less replacing elements with hardcoded tags (parent: TABLE, UL, children: TR,LI), so if this can be done more flexible, you'd have a generic widget. The only thing I just noticed is the "destination" of the filter needs to be more flexible. Right now it's also hardcoded, buy I'm using a |
When working on this we have to see if we can improve performance of the filter. See #4271 Update: I added label "Filter" to track issues with listview filter. |
Would be nice if we can make the filter not only work with search input, but also with radios, checkboxes or selects. See ticket #5930. |
It would be great to have the filter as a separate control. I noticed that your demo also has sorting on column-headers via the data-sortable attribute. Is that something you are also considering to add? |
@uGoMobi, @toddparker I have finally had some time to work on the filter widget. I took the version in the "next" branch and made a few admendments. Demo here: filter widget Comments:
Some Questions:
See you on IRC |
added a repo with current code https://github.com/frequent/filterbar |
This looks really great. |
Looks awesome. It would be great if data-mini and data-clear-btn could also be used on the filter widget. |
|
Closing as fixed because the new filterable widget is on master and will land in 1.4. |
I have updated my tableview plugin to the latest JQM. While doing so, I also changed the listview filter into a generic filter widget, so it can be used outside of a listview.
Right now it works on tables and listviews, but why not expand to custom selects or any group of elements?
Here is a short demo (without polish) showing a table and listview, each using the filter widget.
I can make a branch and pull-request, in case you want to have a look.
The text was updated successfully, but these errors were encountered: