diff options
author | Valerio Virgillito | 2012-06-17 22:31:44 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-17 22:31:44 -0700 |
commit | 8fe92b94ce5e1e2857d088752d94e19db7e3d8a8 (patch) | |
tree | d84807aae0b974b5200050972dd94da6066e363b /node_modules/montage/ui/input-number.reel | |
parent | e570fc8518cf03dd03c15982edcf17c5ba0a293d (diff) | |
download | ninja-8fe92b94ce5e1e2857d088752d94e19db7e3d8a8.tar.gz |
montage v11 merge into ninja
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/input-number.reel')
-rw-r--r-- | node_modules/montage/ui/input-number.reel/input-number.html | 14 | ||||
-rw-r--r-- | node_modules/montage/ui/input-number.reel/input-number.js | 35 |
2 files changed, 49 insertions, 0 deletions
diff --git a/node_modules/montage/ui/input-number.reel/input-number.html b/node_modules/montage/ui/input-number.reel/input-number.html new file mode 100644 index 00000000..756c1d1f --- /dev/null +++ b/node_modules/montage/ui/input-number.reel/input-number.html | |||
@@ -0,0 +1,14 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html> | ||
8 | <head> | ||
9 | <meta charset="utf-8"> | ||
10 | <link rel="stylesheet" href="../input-text.reel/input-text.css"> | ||
11 | </head> | ||
12 | <body> | ||
13 | </body> | ||
14 | </html> \ No newline at end of file | ||
diff --git a/node_modules/montage/ui/input-number.reel/input-number.js b/node_modules/montage/ui/input-number.reel/input-number.js new file mode 100644 index 00000000..924f7310 --- /dev/null +++ b/node_modules/montage/ui/input-number.reel/input-number.js | |||
@@ -0,0 +1,35 @@ | |||
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 | NativeInputNumber = require("ui/native/input-number.reel").InputNumber; | ||
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/native/input-number.reel".NativeInputNumber | ||
21 | */ | ||
22 | exports.InputNumber = Montage.create(NativeInputNumber, { | ||
23 | |||
24 | hasTemplate: { | ||
25 | value: true | ||
26 | }, | ||
27 | |||
28 | didSetElement: { | ||
29 | value: function() { | ||
30 | NativeInputNumber.didSetElement.call(this); | ||
31 | this['class'] = (this['class'] || '') + ' montage-inputNumber montage-inputText'; | ||
32 | } | ||
33 | } | ||
34 | |||
35 | }); \ No newline at end of file | ||