diff options
author | Valerio Virgillito | 2012-05-03 22:53:07 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-03 22:53:07 -0700 |
commit | 24b483db367291b72170f969de78efcb1a9b95bd (patch) | |
tree | a691a7803cefbfa76a6331a50cbeebcd16287d91 /node_modules/montage/ui/range-input.reel | |
parent | dc93269cfa7c315d22d85c8217e2412749643f28 (diff) | |
download | ninja-24b483db367291b72170f969de78efcb1a9b95bd.tar.gz |
integrating the latest montage version
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/range-input.reel')
-rw-r--r-- | node_modules/montage/ui/range-input.reel/range-input.js | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/node_modules/montage/ui/range-input.reel/range-input.js b/node_modules/montage/ui/range-input.reel/range-input.js index 159cddf3..2b4bfcf2 100644 --- a/node_modules/montage/ui/range-input.reel/range-input.js +++ b/node_modules/montage/ui/range-input.reel/range-input.js | |||
@@ -4,13 +4,23 @@ | |||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | /*global require,exports */ | 6 | /*global require,exports */ |
7 | |||
8 | /** | ||
9 | @module "montage/ui/range-input.reel" | ||
10 | @requires montage/ui/component | ||
11 | @requires montage/ui/text-input | ||
12 | @requires montage/ui/composer/press-composer | ||
13 | */ | ||
14 | |||
7 | var Montage = require("montage").Montage, | 15 | var Montage = require("montage").Montage, |
8 | Component = require("ui/component").Component, | 16 | Component = require("ui/component").Component, |
9 | TextInput = require("ui/text-input").TextInput, | 17 | TextInput = require("ui/text-input").TextInput, |
10 | PressComposer = require("ui/composer/press-composer").PressComposer; | 18 | PressComposer = require("ui/composer/press-composer").PressComposer; |
11 | 19 | ||
12 | /** | 20 | /** |
13 | * The input type="range" field | 21 | * Wraps the a <input type="range"> element with binding support for the element's standard attributes. |
22 | @class module:"montage/ui/range-input.reel".RangeInput | ||
23 | @extends module:montage/text-input.TextInput | ||
14 | */ | 24 | */ |
15 | var RangeInput = exports.RangeInput = Montage.create(TextInput, { | 25 | var RangeInput = exports.RangeInput = Montage.create(TextInput, { |
16 | prepareForActivationEvents: { | 26 | prepareForActivationEvents: { |
@@ -49,8 +59,25 @@ var RangeInput = exports.RangeInput = Montage.create(TextInput, { | |||
49 | } | 59 | } |
50 | }); | 60 | }); |
51 | 61 | ||
52 | RangeInput.addAttributes({ | 62 | RangeInput.addAttributes( /** @lends module:"montage/ui/range-input.reel".RangeInput# */ { |
63 | /** | ||
64 | The maximum value displayed but the input control. | ||
65 | @type {number} | ||
66 | @default null | ||
67 | */ | ||
53 | max: {dataType: 'number'}, | 68 | max: {dataType: 'number'}, |
69 | |||
70 | /** | ||
71 | The minimum value displayed but the input control. | ||
72 | @type {number} | ||
73 | @default null | ||
74 | */ | ||
54 | min: {dataType: 'number'}, | 75 | min: {dataType: 'number'}, |
76 | |||
77 | /** | ||
78 | The amount the number changes with each step. The step size can be a number, or the string 'any'. | ||
79 | @type {number|string} | ||
80 | @default null | ||
81 | */ | ||
55 | step: null // number or 'any' | 82 | step: null // number or 'any' |
56 | }); | 83 | }); |