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