]>
Commit | Line | Data |
---|---|---|
f0cfe83e AD |
1 | require({cache:{ |
2 | 'url:dijit/templates/MenuSeparator.html':"<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>"}}); | |
3 | define("dijit/MenuSeparator", [ | |
4 | "dojo/_base/declare", // declare | |
5 | "dojo/dom", // dom.setSelectable | |
6 | "./_WidgetBase", | |
7 | "./_TemplatedMixin", | |
8 | "./_Contained", | |
9 | "dojo/text!./templates/MenuSeparator.html" | |
10 | ], function(declare, dom, _WidgetBase, _TemplatedMixin, _Contained, template){ | |
11 | ||
12 | // module: | |
13 | // dijit/MenuSeparator | |
14 | ||
15 | return declare("dijit.MenuSeparator", [_WidgetBase, _TemplatedMixin, _Contained], { | |
16 | // summary: | |
17 | // A line between two menu items | |
18 | ||
19 | templateString: template, | |
20 | ||
21 | buildRendering: function(){ | |
22 | this.inherited(arguments); | |
23 | dom.setSelectable(this.domNode, false); | |
24 | }, | |
25 | ||
26 | isFocusable: function(){ | |
27 | // summary: | |
28 | // Override to always return false | |
29 | // tags: | |
30 | // protected | |
31 | ||
32 | return false; // Boolean | |
33 | } | |
34 | }); | |
35 | }); |