$( "#menu6" ).menu({
menus: ".menuElement",
- select: logger
+ select: logger,
+ icon: "ui-icon-carat-1-s"
});
});
</script>
</blockquote>
</div>
-<h2>Menu with custom markup, multi-line items</h2>
+<h2>Menu with custom markup, multi-line items and a custom submenu icon</h2>
<div class="menuElement" id="menu6">
<div class="address-item">
<a href="#">
at: "right top"
},
role: "menu",
+ icon: "ui-icon-carat-1-e",
// callbacks
blur: null,
refresh: function() {
// Initialize nested menus
var menus,
+ icon = this.options.icon,
submenus = this.element.find( this.options.menus + ":not(.ui-menu)" )
.addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )
.hide()
var menu = $( this ),
item = menu.prev( "a" ),
submenuCarat = $( "<span>" )
- .addClass( "ui-menu-icon ui-icon ui-icon-carat-1-e" )
+ .addClass( "ui-menu-icon ui-icon " + icon )
.data( "ui-menu-submenu-carat", true );
item