diff options
author | Jonathan Duran | 2012-06-20 15:04:45 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-06-20 15:04:45 -0700 |
commit | c6ae80c488621d4ac189cb63309b6258115f823a (patch) | |
tree | dfa26112e1830972fcb212bbb5b17c9a901c645f /node_modules/montage/ui/native/input-number.reel/input-number.js | |
parent | 022e714cb5d10cd8575ab9907eddfb184a990b66 (diff) | |
parent | c9852665eadc1acb9c1c881d207c4bd9ef88805f (diff) | |
download | ninja-c6ae80c488621d4ac189cb63309b6258115f823a.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into Timeline-merge-candidate
Diffstat (limited to 'node_modules/montage/ui/native/input-number.reel/input-number.js')
-rw-r--r-- | node_modules/montage/ui/native/input-number.reel/input-number.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/node_modules/montage/ui/native/input-number.reel/input-number.js b/node_modules/montage/ui/native/input-number.reel/input-number.js new file mode 100644 index 00000000..2fd5a15f --- /dev/null +++ b/node_modules/montage/ui/native/input-number.reel/input-number.js | |||
@@ -0,0 +1,48 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<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. | ||
5 | </copyright> */ | ||
6 | |||
7 | /** | ||
8 | @module "montage/ui/input-number.reel" | ||
9 | @requires montage/ui/component | ||
10 | @requires montage/ui/text-input | ||
11 | */ | ||
12 | |||
13 | var Montage = require("montage").Montage, | ||
14 | Component = require("ui/component").Component, | ||
15 | TextInput = require("ui/text-input").TextInput; | ||
16 | |||
17 | /** | ||
18 | * Wraps the a <input type="date"> element with binding support for the element's standard attributes. | ||
19 | @class module:"montage/ui/input-number.reel".InputNumber | ||
20 | @extends module:montage/ui/text-input.TextInput | ||
21 | */ | ||
22 | var InputNumber = exports.InputNumber = Montage.create(TextInput, { | ||
23 | |||
24 | }); | ||
25 | |||
26 | InputNumber.addAttributes(/** @lends module:"montage/ui/input-number.reel".InputNumber */{ | ||
27 | |||
28 | /** | ||
29 | The maximum value displayed but the number control. | ||
30 | @type {number} | ||
31 | @default null | ||
32 | */ | ||
33 | max: {dataType: 'number'}, | ||
34 | |||
35 | /** | ||
36 | The minimum value displayed but the number control. | ||
37 | @type {number} | ||
38 | @default null | ||
39 | */ | ||
40 | min: {dataType: 'number'}, | ||
41 | |||
42 | /** | ||
43 | The amount the number changes with each step. | ||
44 | @type {number} | ||
45 | @default null | ||
46 | */ | ||
47 | step: null // number or 'any' | ||
48 | }); | ||