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/number-input.reel/number-input.js | |
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/number-input.reel/number-input.js')
-rw-r--r-- | node_modules/montage/ui/number-input.reel/number-input.js | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/node_modules/montage/ui/number-input.reel/number-input.js b/node_modules/montage/ui/number-input.reel/number-input.js index dfd7235f..010c0b75 100644 --- a/node_modules/montage/ui/number-input.reel/number-input.js +++ b/node_modules/montage/ui/number-input.reel/number-input.js | |||
@@ -3,18 +3,46 @@ | |||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | 3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> |
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 | |||
7 | /** | ||
8 | @module "montage/ui/number-input.reel" | ||
9 | @requires montage/ui/component | ||
10 | @requires montage/ui/text-input | ||
11 | */ | ||
12 | |||
6 | var Montage = require("montage").Montage, | 13 | var Montage = require("montage").Montage, |
7 | Component = require("ui/component").Component, | 14 | Component = require("ui/component").Component, |
8 | TextInput = require("ui/text-input").TextInput; | 15 | TextInput = require("ui/text-input").TextInput; |
16 | |||
9 | /** | 17 | /** |
10 | * The Number input | 18 | * Wraps the a <input type="date"> element with binding support for the element's standard attributes. |
19 | @class module:"montage/ui/number-input.reel".NumberInput | ||
20 | @extends module:montage/text-input.TextInput | ||
11 | */ | 21 | */ |
12 | var NumberInput = exports.NumberInput = Montage.create(TextInput, { | 22 | var NumberInput = exports.NumberInput = Montage.create(TextInput, { |
13 | 23 | ||
14 | }); | 24 | }); |
15 | 25 | ||
16 | NumberInput.addAttributes({ | 26 | NumberInput.addAttributes(/** @lends module:"montage/ui/number-input.reel".NumberInput */{ |
27 | |||
28 | /** | ||
29 | The maximum value displayed but the number control. | ||
30 | @type {number} | ||
31 | @default null | ||
32 | */ | ||
17 | max: {dataType: 'number'}, | 33 | max: {dataType: 'number'}, |
34 | |||
35 | /** | ||
36 | The minimum value displayed but the number control. | ||
37 | @type {number} | ||
38 | @default null | ||
39 | */ | ||
18 | min: {dataType: 'number'}, | 40 | min: {dataType: 'number'}, |
41 | |||
42 | /** | ||
43 | The amount the number changes with each step. | ||
44 | @type {number} | ||
45 | @default null | ||
46 | */ | ||
19 | step: null // number or 'any' | 47 | step: null // number or 'any' |
20 | }); | 48 | }); |