diff options
author | Valerio Virgillito | 2012-02-02 00:11:51 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-02 00:11:51 -0800 |
commit | 5a305ec44b2bd5198a248357439aae8ebbd75fee (patch) | |
tree | ec3b756beab7105841353ef79d4e8059b2b6a91c /node_modules/montage/ui/date-input.reel/date-input.js | |
parent | dbe9c7705860fb3551321e23e7eab763f622241c (diff) | |
download | ninja-5a305ec44b2bd5198a248357439aae8ebbd75fee.tar.gz |
upgrading to Montage v0.6
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/date-input.reel/date-input.js')
-rw-r--r-- | node_modules/montage/ui/date-input.reel/date-input.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/node_modules/montage/ui/date-input.reel/date-input.js b/node_modules/montage/ui/date-input.reel/date-input.js new file mode 100644 index 00000000..af163258 --- /dev/null +++ b/node_modules/montage/ui/date-input.reel/date-input.js | |||
@@ -0,0 +1,31 @@ | |||
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 | var Montage = require("montage").Montage, | ||
7 | Component = require("ui/component").Component, | ||
8 | TextInput = require("ui/text-input").TextInput; | ||
9 | /** | ||
10 | * The Component wrapper for input type="date" | ||
11 | */ | ||
12 | var DateInput = exports.DateInput = Montage.create(TextInput, { | ||
13 | hasTemplate: {value: true} | ||
14 | }); | ||
15 | |||
16 | DateInput.addAttributes({ | ||
17 | autocomplete: null, | ||
18 | disabled: {dataType: 'boolean'}, | ||
19 | list: null, // list of autocomplete options | ||
20 | max: null, | ||
21 | maxlength: null, | ||
22 | min: null, | ||
23 | multiple: null, | ||
24 | name: null, | ||
25 | pattern: null, | ||
26 | placeholder: null, | ||
27 | readonly: {dataType: 'boolean'}, | ||
28 | required: {dataType: 'boolean'}, | ||
29 | size: null, | ||
30 | src: null | ||
31 | }); | ||