Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Events for listview filtering starting/stopping #3163

Closed
offsky opened this issue Nov 25, 2011 · 1 comment
Closed

Events for listview filtering starting/stopping #3163

offsky opened this issue Nov 25, 2011 · 1 comment

Comments

@offsky
Copy link

offsky commented Nov 25, 2011

It would be really handy to have events triggered when a listview filter starts and when it is canceled. This way we can update our UI to reflect that the list is or isn't being filtered. I know that there are workarounds for this, such as having a high-frequency timer checking the state of the list, or biding to the keyup event of input box with a slight delay to allow JQM to finish the filter, but it would be nice to have a more elegant solution. Something like:

$( '#myList' ).live( 'filterStart',function(event,listview){
  alert( 'This listview just got filtered' );
});
$( '#myList' ).live( 'filterEnd',function(event,listview){
  alert( 'This listview filter was just canceled' );
});
@toddparker
Copy link
Contributor

Mind adding a link to this the feature request wiki?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants