yzt
2023-05-05 4c558c77a6a9d23f057f094c4dc3e315eabef497
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
define([
    "dojo/_base/declare", // declare
    "./HorizontalSlider",
    "dojo/text!./templates/VerticalSlider.html"
], function(declare, HorizontalSlider, template){
 
    // module:
    //      dijit/form/VerticalSlider
 
    return declare("dijit.form.VerticalSlider", HorizontalSlider, {
        // summary:
        //      A form widget that allows one to select a value with a vertically draggable handle
 
        templateString: template,
        _mousePixelCoord: "pageY",
        _pixelCount: "h",
        _startingPixelCoord: "y",
        _handleOffsetCoord: "top",
        _progressPixelSize: "height",
 
        // _descending: Boolean
        //      Specifies if the slider values go from high-on-top (true), or low-on-top (false)
        //      TODO: expose this in 1.2 - the css progress/remaining bar classes need to be reversed
        _descending: true,
 
        _isReversed: function(){
            // summary:
            //      Overrides HorizontalSlider._isReversed.
            //      Indicates if values are high on top (with low numbers on the bottom).
            return this._descending;
        }
    });
});