Last change
on this file since 256 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:
1.1 KB
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/declare", // declare |
---|
3 | "./HorizontalSlider", |
---|
4 | "dojo/text!./templates/VerticalSlider.html" |
---|
5 | ], function(declare, HorizontalSlider, template){ |
---|
6 | |
---|
7 | /*===== |
---|
8 | var HorizontalSlider = dijit.form.HorizontalSlider; |
---|
9 | =====*/ |
---|
10 | |
---|
11 | // module: |
---|
12 | // dijit/form/VerticalSlider |
---|
13 | // summary: |
---|
14 | // A form widget that allows one to select a value with a vertically draggable handle |
---|
15 | |
---|
16 | |
---|
17 | return declare("dijit.form.VerticalSlider", HorizontalSlider, { |
---|
18 | // summary: |
---|
19 | // A form widget that allows one to select a value with a vertically draggable handle |
---|
20 | |
---|
21 | templateString: template, |
---|
22 | _mousePixelCoord: "pageY", |
---|
23 | _pixelCount: "h", |
---|
24 | _startingPixelCoord: "y", |
---|
25 | _handleOffsetCoord: "top", |
---|
26 | _progressPixelSize: "height", |
---|
27 | |
---|
28 | // _descending: Boolean |
---|
29 | // Specifies if the slider values go from high-on-top (true), or low-on-top (false) |
---|
30 | // TODO: expose this in 1.2 - the css progress/remaining bar classes need to be reversed |
---|
31 | _descending: true, |
---|
32 | |
---|
33 | _isReversed: function(){ |
---|
34 | // summary: |
---|
35 | // Overrides HorizontalSlider._isReversed. |
---|
36 | // Indicates if values are high on top (with low numbers on the bottom). |
---|
37 | return this._descending; |
---|
38 | } |
---|
39 | }); |
---|
40 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.