You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
require({cache:{
|
|
'url:dijit/templates/MenuBarItem.html':"<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" data-dojo-attach-point=\"focusNode\"\n\t \trole=\"menuitem\" tabIndex=\"-1\">\n\t<span data-dojo-attach-point=\"containerNode\"></span>\n</div>\n"}});
|
|
define("dijit/MenuBarItem", [
|
|
"dojo/_base/declare", // declare
|
|
"./MenuItem",
|
|
"dojo/text!./templates/MenuBarItem.html"
|
|
], function(declare, MenuItem, template){
|
|
|
|
// module:
|
|
// dijit/MenuBarItem
|
|
|
|
var _MenuBarItemMixin = declare("dijit._MenuBarItemMixin", null, {
|
|
templateString: template,
|
|
|
|
// Map widget attributes to DOMNode attributes.
|
|
_setIconClassAttr: null // cancel MenuItem setter because we don't have a place for an icon
|
|
});
|
|
|
|
var MenuBarItem = declare("dijit.MenuBarItem", [MenuItem, _MenuBarItemMixin], {
|
|
// summary:
|
|
// Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered)
|
|
|
|
});
|
|
MenuBarItem._MenuBarItemMixin = _MenuBarItemMixin; // dojox.mobile is accessing this
|
|
|
|
|
|
return MenuBarItem;
|
|
});
|