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.<option>
within the <select>
.<option>
.<option>
.optgroup
, if any.<option>
is disabled." )
+ .css( "background-color", item.value );
+
+ if ( item.disabled ) {
+ li.addClass( "ui-state-disabled" );
+ }
+
+ this._setText( li, item.label );
+
+ return li.appendTo( ul );
+}
+]]>
+ <ul>
and an array of items based on the <option>
elements in the original <select>
. Creation of the individual <li>
elements should be delegated to _renderItemData()
, which in turn delegates to the _renderItem()
extension point.
+ <ul>
element to use as the widget's menu.<option>
elements in the original <select>
. See the _renderItem()
extension point for details on the format of the item objects.Add a CSS class name to the odd menu items.
+
+ this.menu
.
+