Anyone know the best way to add an icon to a list-divider? Taking a look at the code, icons are only added to links automatically. However, they are wrapped and classes assign that relate to links specifically. So I didn't know if someone had already figured out the CSS needed to mimic icons in a list-divider. Thanks!
You're probably looking for a Listview Autodivider Linkbar. You can view the source to see the relevant markup - if this is indeed what you're looking for. I think the code you'll need is:
Or are you looking for a button to open a panel? You can clarify further by giving an example of what you're trying to mimic. The clearer your question is, the better for all of us.
I think you've under-described it. It took 6 posts to get to what you actually want. You want to use one of the built-in JQM icons within content, headers, etc.
You can use this anywhere:
<div class="ui-icon ui-icon-arrow-r"></div>
You may need to do some CSS fiddling to get it to display just where you want it. You can use Web Inspector, Firebug, etc. to help you figure that out.
Alternately, you can create an icon-only button following the the documentation Godsbest linked-to above. Not clear if you wanted a button or just to display the icon.
Sure, I could have thought of a better way of describing it. At the time I thought it was very strait-forward and basic, but maybe "basic" is the keyword there.
Taking a look at an icon-only button, it still adds the button border which doesn't look like the other listview icons. I've come up with a solution that basically mimics the link button icons.
I've come up with a plugin that adds functionality for list-dividers that basically mimic's a link button icon. Below is the JavaScript and CSS required. I've also posted an example on JSFiddle: http://jsfiddle.net/Panman8201/ZpJWM/ Please let me know what you think. Thanks!
<script>
(function( $, undefined ) {
// If set, this icon will be applied to all list-dividers