]>
Commit | Line | Data |
---|---|---|
1354d172 AD |
1 | require({cache:{ |
2 | 'url:dijit/templates/MenuBarItem.html':"<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<span data-dojo-attach-point=\"containerNode\"></span>\n</div>\n"}}); | |
3 | define("dijit/MenuBarItem", [ | |
4 | "dojo/_base/declare", // declare | |
5 | "./MenuItem", | |
6 | "dojo/text!./templates/MenuBarItem.html" | |
7 | ], function(declare, MenuItem, template){ | |
8 | ||
9 | /*===== | |
10 | var MenuItem = dijit.MenuItem; | |
11 | =====*/ | |
12 | ||
13 | // module: | |
14 | // dijit/MenuBarItem | |
15 | // summary: | |
16 | // Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered) | |
17 | ||
18 | ||
19 | var _MenuBarItemMixin = declare("dijit._MenuBarItemMixin", null, { | |
20 | templateString: template, | |
21 | ||
22 | // Map widget attributes to DOMNode attributes. | |
23 | _setIconClassAttr: null // cancel MenuItem setter because we don't have a place for an icon | |
24 | }); | |
25 | ||
26 | var MenuBarItem = declare("dijit.MenuBarItem", [MenuItem, _MenuBarItemMixin], { | |
27 | // summary: | |
28 | // Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered) | |
29 | ||
30 | }); | |
31 | MenuBarItem._MenuBarItemMixin = _MenuBarItemMixin; // dojox.mobile is accessing this | |
32 | ||
33 | ||
34 | return MenuBarItem; | |
35 | }); |