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

Feature Request: Filterable feature to hide parent divs and only show children containing string #6387

Closed
BubbaJoDog opened this issue Aug 24, 2013 · 3 comments

Comments

@BubbaJoDog
Copy link

Enhancement description: Filterable feature to hide parent divs and only show children containing string
Test page: http://jsbin.com/ofuhaw/255
Steps to reproduce: On test page, enter pizza in search filter
Requested outcome: Only show child div containing the filtered string
Current outcome: The parent div(s) show and user has to drill down through child divs and scan for filtered string through child divs that do not contain the string
Platforms/browsers (including version) and devices tested: Windows 7 Chrome 28, Phonegap 2.8.1,, Android 4.3
jQuery Mobile and jQuery core version used: jquery-1.10.1, jquery.mobile-1.4.0-alpha.2
Other relevant information, e.g. using PhoneGap: Phonegap 2.8.1

Thank you for your work and consideration of this request!

@jaspermdegroot
Copy link
Contributor

@BubbaJoDog

Thanks for the feature request, but this is not something we will implement.
It would mean the widget has to be able to filter more than one level, which is bad for perfomance. And to show only the nested collapsible and not its parent(s) means the widget would have to copy or move the nested collapsible, while this widget is only meant to filter.

@arschmitz
Copy link
Contributor

This is actually already possible, and we already have a demo of it http://demos.jquerymobile.com/1.4.2/filterable/#FilterCollapsibleSetandcollapsiblechildren

@jaspermdegroot
Copy link
Contributor

You're right, I forgot that the option children accepts multiple selectors. However, only showing the child and not its parent (the actual feature request here) is not possible.

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

3 participants