Rev | Line | |
---|
[483] | 1 | define([ |
---|
| 2 | "dojo/_base/declare", // declare |
---|
| 3 | "dojo/dom", // dom.setSelectable |
---|
| 4 | "./_Widget", |
---|
| 5 | "./_TemplatedMixin" |
---|
| 6 | ], function(declare, dom, _Widget, _TemplatedMixin){ |
---|
| 7 | |
---|
| 8 | // module: |
---|
| 9 | // dijit/ToolbarSeparator |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | return declare("dijit.ToolbarSeparator", [_Widget, _TemplatedMixin], { |
---|
| 13 | // summary: |
---|
| 14 | // A spacer between two `dijit.Toolbar` items |
---|
| 15 | |
---|
| 16 | templateString: '<div class="dijitToolbarSeparator dijitInline" role="presentation"></div>', |
---|
| 17 | |
---|
| 18 | buildRendering: function(){ |
---|
| 19 | this.inherited(arguments); |
---|
| 20 | dom.setSelectable(this.domNode, false); |
---|
| 21 | }, |
---|
| 22 | |
---|
| 23 | isFocusable: function(){ |
---|
| 24 | // summary: |
---|
| 25 | // This widget isn't focusable, so pass along that fact. |
---|
| 26 | // tags: |
---|
| 27 | // protected |
---|
| 28 | return false; |
---|
| 29 | } |
---|
| 30 | }); |
---|
| 31 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.