]>
Commit | Line | Data |
---|---|---|
1354d172 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 | /*===== | |
13 | var _WidgetBase = dijit._WidgetBase; | |
14 | var _TemplatedMixin = dijit._TemplatedMixin; | |
15 | var _Contained = dijit._Contained; | |
16 | =====*/ | |
17 | ||
18 | // module: | |
19 | // dijit/MenuSeparator | |
20 | // summary: | |
21 | // A line between two menu items | |
22 | ||
23 | return declare("dijit.MenuSeparator", [_WidgetBase, _TemplatedMixin, _Contained], { | |
24 | // summary: | |
25 | // A line between two menu items | |
26 | ||
27 | templateString: template, | |
28 | ||
29 | buildRendering: function(){ | |
30 | this.inherited(arguments); | |
31 | dom.setSelectable(this.domNode, false); | |
32 | }, | |
33 | ||
34 | isFocusable: function(){ | |
35 | // summary: | |
36 | // Override to always return false | |
37 | // tags: | |
38 | // protected | |
39 | ||
40 | return false; // Boolean | |
41 | } | |
42 | }); | |
43 | }); |