diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo/dijit/MenuBarItem.js | |
Diffstat (limited to '')
| -rw-r--r-- | js/dojo/dijit/MenuBarItem.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/js/dojo/dijit/MenuBarItem.js b/js/dojo/dijit/MenuBarItem.js new file mode 100644 index 0000000..c2aacbe --- /dev/null +++ b/js/dojo/dijit/MenuBarItem.js @@ -0,0 +1,36 @@ +//>>built +require({cache:{ +'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"}}); +define("dijit/MenuBarItem", [ + "dojo/_base/declare", // declare + "./MenuItem", + "dojo/text!./templates/MenuBarItem.html" +], function(declare, MenuItem, template){ + +/*===== + var MenuItem = dijit.MenuItem; +=====*/ + + // module: + // dijit/MenuBarItem + // summary: + // Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered) + + + 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; +}); |
