jQuery
object containing the button element.Method that controls the creation of each option in the widget's menu. The method must create a new <li>
element, append it to the menu, and return it.
<ul>
element that the newly created <li>
element must be appended to.<option>
element.<optgroup>
, this is set to that <optgroup>
's label.value
attribute of the item's original <option>
.<option>
element has a data-icon
attribute." )
+ .append( item.label )
+ .css( "padding-left", "1.5em" );
+ li.append( "" )
+ .find( "span" )
+ .addClass( "ui-icon " + item.element.attr( "data-icon" ) );
+ return li.appendTo( ul );
+}
+]]>
+