MenuBarItem.js 1.2 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dijit.MenuBarItem"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dijit.MenuBarItem"] = true;
  8. dojo.provide("dijit.MenuBarItem");
  9. dojo.require("dijit.MenuItem");
  10. dojo.declare("dijit._MenuBarItemMixin", null, {
  11. templateString: dojo.cache("dijit", "templates/MenuBarItem.html", "<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<span dojoAttachPoint=\"containerNode\"></span>\n</div>\n"),
  12. // overriding attributeMap because we don't have icon
  13. attributeMap: dojo.delegate(dijit._Widget.prototype.attributeMap, {
  14. label: { node: "containerNode", type: "innerHTML" }
  15. })
  16. });
  17. dojo.declare("dijit.MenuBarItem", [dijit.MenuItem, dijit._MenuBarItemMixin], {
  18. // summary:
  19. // Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered)
  20. });
  21. }