jQuery
object containing the button element.Method that controls the creation of the generated button content. The method must create and return a new element.
+<option>
element.<optgroup>
, this is set to that <optgroup>
's label.value
attribute of the item's original <option>
.data-icon
attribute.", {
+ "class": "ui-selectmenu-text"
+ })
+ this._setText( buttonItem, item.label );
+
+ buttonItem
+ .css( "padding-left", "2.5em" )
+ .append( "" )
+ .find( "span" )
+ .addClass( "ui-icon " + item.element.attr( "data-icon") )
+ .css( "left", "0.5em" );
+
+ return buttonItem;
+}
+]]>
+