jquery/jquery-mobile — Issue #3151: List filtering by non-displayed data
Author: offsky
Created: 2011-11-23 18:34:32+00:00
State: open

This is a feature request for list filtering based on data that is not displayed in the list. For example, if I have a list of movie titles, and I do a search for "Kevin Bacon", I would like to see movies that Kevin Bacon is in, even though his name is not displayed anywhere.

This could be accomplished with minimal effort by passing a 3rd argument to the filterCallback which is the row object or row id. The application would then be responsible for using this to lookup the hidden data via an in memory array, ajax or whatever. Currently the filterCallback only gets the raw concatenate text contents of what is in the row, so we have no reference to which row it is, which makes it very difficult to enhance the filter logic to include external data.