It seems that the feature you're looking for is not currently implemented in jQuery UI.
You may want to consider using fontawesome
, as it provides the functionality you are seeking.
If you wish to align all jQuery UI icons with fontawesome, you can utilize this CSS replacement workaround:
/* Allow Font Awesome Icons instead of jQuery UI and apply only when using a FA icon */
.ui-icon[class*=" fa-"] {
/* Remove the jQuery UI Icon */
background: none repeat scroll 0 0 transparent;
/* Remove the jQuery UI Text Indent */
text-indent: 0;
/* Adjust position - jQuery UI is -8px */
margin-top: -0.5em;
}
.ui-button-icon-only .ui-icon[class*=" fa-"] {
/* Adjust position - jQuery UI is -8px */
margin-left: -7px;
}
/* Proper alignment for icon-large */
.ui-icon.icon-large {
margin-top: -0.75em;
}
This is one way to achieve the replacement, but you also have the option of using fontawesome icons directly like so:
<i class="fa fa-camera-retro"></i> icon-camera-retro
For more information, you can check out the related Q/A on Stack Overflow: Extend jQuery UI Icons with Font-Awesome
Check out the demo here: http://jsfiddle.net/IrvinDominin/bEd2R/
UPDATE
The answer has been updated for FontAwesome 4.0, which introduced changes to the CSS classes due to:
Icons have been renamed to improve consistency and predictability.
Reference:
CSS Code:
/* Allow Font Awesome Icons instead of jQuery UI and apply only when using a FA icon */
.ui-icon[class*=" fa-"] {
/* Remove the jQuery UI Icon */
background: none repeat scroll 0 0 transparent;
/* Remove the jQuery UI Text Indent */
text-indent: 0;
/* Adjust position - jQuery UI is -8px */
margin-top: -0.5em;
}
.ui-button-icon-only .ui-icon[class*=" fa-"] {
/* Adjust position - jQuery UI is -8px */
margin-left: -7px;
}
/* Proper alignment for icon-large */
.ui-icon.icon-large {
margin-top: -0.75em;
}