Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/declare", // declare |
---|
3 | "dojo/dom", // dom.setSelectable |
---|
4 | "./_WidgetBase", |
---|
5 | "./_TemplatedMixin", |
---|
6 | "./_Contained", |
---|
7 | "dojo/text!./templates/MenuSeparator.html" |
---|
8 | ], function(declare, dom, _WidgetBase, _TemplatedMixin, _Contained, template){ |
---|
9 | |
---|
10 | // module: |
---|
11 | // dijit/MenuSeparator |
---|
12 | |
---|
13 | return declare("dijit.MenuSeparator", [_WidgetBase, _TemplatedMixin, _Contained], { |
---|
14 | // summary: |
---|
15 | // A line between two menu items |
---|
16 | |
---|
17 | templateString: template, |
---|
18 | |
---|
19 | buildRendering: function(){ |
---|
20 | this.inherited(arguments); |
---|
21 | dom.setSelectable(this.domNode, false); |
---|
22 | }, |
---|
23 | |
---|
24 | isFocusable: function(){ |
---|
25 | // summary: |
---|
26 | // Override to always return false |
---|
27 | // tags: |
---|
28 | // protected |
---|
29 | |
---|
30 | return false; // Boolean |
---|
31 | } |
---|
32 | }); |
---|
33 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.