diff options
author | Armen Kesablyan | 2012-06-20 15:16:30 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-20 15:16:30 -0700 |
commit | 65b989c7759af923fb9456d34bff89f91831ea1e (patch) | |
tree | e408be732a3eee71229bfc7dbf7cace998ce18de /node_modules/montage/ui/native/input-date.reel | |
parent | 38f571d1fdf02d36c3816637af7b2ca2493809da (diff) | |
parent | fc818d31de267d2b77fda3b3029ad38d48698be8 (diff) | |
download | ninja-65b989c7759af923fb9456d34bff89f91831ea1e.tar.gz |
Merge branch 'refs/heads/master' into binding
Conflicts:
node_modules/montage/ui/application.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/native/input-date.reel')
-rw-r--r-- | node_modules/montage/ui/native/input-date.reel/input-date.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/node_modules/montage/ui/native/input-date.reel/input-date.js b/node_modules/montage/ui/native/input-date.reel/input-date.js new file mode 100644 index 00000000..25649d25 --- /dev/null +++ b/node_modules/montage/ui/native/input-date.reel/input-date.js | |||
@@ -0,0 +1,46 @@ | |||
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-date.reel" | ||
9 | @requires montage/core/core | ||
10 | @requires montage/ui/component | ||
11 | @requires montage/ui/text-input | ||
12 | */ | ||
13 | var Montage = require("montage").Montage, | ||
14 | Component = require("ui/component").Component, | ||
15 | TextInput = require("ui/text-input").TextInput; | ||
16 | |||
17 | /** | ||
18 | Wraps an <input type="date"> element as a component. | ||
19 | @class module:"montage/ui/input-date.reel".InputDate | ||
20 | @extends module:montage/ui/text-input.TextInput | ||
21 | */ | ||
22 | var InputDate = exports.InputDate = Montage.create(TextInput, { | ||
23 | }); | ||
24 | |||
25 | InputDate.addAttributes( /** @lends module:"montage/ui/input-date.reel".InputDate# */{ | ||
26 | |||
27 | /** | ||
28 | The upper bound for the element’s value represented in the "full-date" format, (for example, 2001-05-24). | ||
29 | @type {string} | ||
30 | @default: null | ||
31 | */ | ||
32 | max: null, | ||
33 | /** | ||
34 | The lower bound for the element’s value represented in the "full-date" format, (for example, 2001-05-24). | ||
35 | @type {string} | ||
36 | @default: null | ||
37 | */ | ||
38 | min: null, | ||
39 | |||
40 | /** | ||
41 | The amount the date changes with each step. | ||
42 | @type {string|number} | ||
43 | @default null | ||
44 | */ | ||
45 | step: null | ||
46 | }); \ No newline at end of file | ||