source: Dev/branches/rest-dojo-ui/client/dijit/MenuBarItem.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 894 bytes
Line 
1define([
2        "dojo/_base/declare", // declare
3        "./MenuItem",
4        "dojo/text!./templates/MenuBarItem.html"
5], function(declare, MenuItem, template){
6
7/*=====
8        var MenuItem = dijit.MenuItem;
9=====*/
10
11        // module:
12        //              dijit/MenuBarItem
13        // summary:
14        //              Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered)
15
16
17        var _MenuBarItemMixin = declare("dijit._MenuBarItemMixin", null, {
18                templateString: template,
19
20                // Map widget attributes to DOMNode attributes.
21                _setIconClassAttr: null // cancel MenuItem setter because we don't have a place for an icon
22        });
23
24        var MenuBarItem = declare("dijit.MenuBarItem", [MenuItem, _MenuBarItemMixin], {
25                // summary:
26                //              Item in a MenuBar that's clickable, and doesn't spawn a submenu when pressed (or hovered)
27
28        });
29        MenuBarItem._MenuBarItemMixin = _MenuBarItemMixin;      // dojox.mobile is accessing this
30
31
32        return MenuBarItem;
33});
Note: See TracBrowser for help on using the repository browser.