Automatically open filtered collapsible set items
I've created a a simple page which has a data-filter applied to collapsible set items (please see code below). The collapsible set items are closed initially.
I want to be able to enter a word to filter by and have the matching collapsible set items automatically opened when they are returned? I can't find anything in the docs that will help me. Any ideas?
- <div data-role="page" id="page">
- <div data-role="content">
- <h1>Collapsible set with search</h1>
- <div data-role="collapsible-set" >
- <div data-role="listview" data-inset="true" data-filter="true">
- <div data-role="collapsible">
- <h1>Numero uno</h1>
- <div>some text</div>
- </div>
- <div data-role="collapsible">
- <h1>Number two</h1>
- <div>some text</div>
- </div>
- <div>Header</div>
- <div data-role="collapsible">
- <h1>Numero three </h1>
- <div>some potato</div>
- </div>
- <div data-role="collapsible">
- <h1>Number four</h1>
- <div>some text</div>
- </div>
- </div>
- </div>
- </div>
- </div>