I’m currently exploring jQuery Mobile to develop a mobile version of a dashboard with ordertracking information. And what the plan is, is to use a simple unordered list with all orders, and people can click on the link they want to know more about.
Because this list can become quite large, it is nice to have a filter ability which it’s easy to do with jQuery Mobile.
Just something like this:
<ul data-role="listview" data-filter="true">
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
</ul>
data-filter="true" takes care of displaying a searchbar and it actually works pretty nice.
But my only problem is, when nothing is found, it just displays nothing, and I would like there to be a bit of text saying something like “Sorry, no orders where found.”
Does anybody know if this is possible with jQuery Mobile, or is it something that has to be coded from scratch?
Here is a demo: http://jsfiddle.net/6Vu4r/1/