Last change
on this file since 527 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
998 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "require", |
---|
3 | "dojo/_base/declare", // declare |
---|
4 | "dojo/has", |
---|
5 | "dojo/keys", // keys.LEFT_ARROW keys.RIGHT_ARROW |
---|
6 | "dojo/ready", |
---|
7 | "./_Widget", |
---|
8 | "./_KeyNavContainer", |
---|
9 | "./_TemplatedMixin" |
---|
10 | ], function(require, declare, has, keys, ready, _Widget, _KeyNavContainer, _TemplatedMixin){ |
---|
11 | |
---|
12 | // module: |
---|
13 | // dijit/Toolbar |
---|
14 | |
---|
15 | |
---|
16 | // Back compat w/1.6, remove for 2.0 |
---|
17 | if(has("dijit-legacy-requires")){ |
---|
18 | ready(0, function(){ |
---|
19 | var requires = ["dijit/ToolbarSeparator"]; |
---|
20 | require(requires); // use indirection so modules not rolled into a build |
---|
21 | }); |
---|
22 | } |
---|
23 | |
---|
24 | return declare("dijit.Toolbar", [_Widget, _TemplatedMixin, _KeyNavContainer], { |
---|
25 | // summary: |
---|
26 | // A Toolbar widget, used to hold things like `dijit/Editor` buttons |
---|
27 | |
---|
28 | templateString: |
---|
29 | '<div class="dijit" role="toolbar" tabIndex="${tabIndex}" data-dojo-attach-point="containerNode">' + |
---|
30 | '</div>', |
---|
31 | |
---|
32 | baseClass: "dijitToolbar", |
---|
33 | |
---|
34 | _onLeftArrow: function(){ |
---|
35 | this.focusPrev(); |
---|
36 | }, |
---|
37 | |
---|
38 | _onRightArrow: function(){ |
---|
39 | this.focusNext(); |
---|
40 | } |
---|
41 | }); |
---|
42 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.