diff options
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 | 33 |
1 files changed, 30 insertions, 3 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 index 0d8ff613..ba654960 100644 --- a/node_modules/montage/ui/date-input.reel/date-input.js +++ b/node_modules/montage/ui/date-input.reel/date-input.js | |||
@@ -3,17 +3,44 @@ | |||
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/date-input.reel" | ||
9 | @requires montage/core/core | ||
10 | @requires montage/ui/component | ||
11 | @requires montage/ui/text-input | ||
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 Component wrapper for input type="date" | 18 | Wraps an <input type="date"> element as a component. |
19 | @class module:"montage/ui/date-input.reel".DateInput | ||
20 | @extends module:montage/ui/text-input.TextInput | ||
11 | */ | 21 | */ |
12 | var DateInput = exports.DateInput = Montage.create(TextInput, { | 22 | var DateInput = exports.DateInput = Montage.create(TextInput, { |
13 | }); | 23 | }); |
14 | 24 | ||
15 | DateInput.addAttributes({ | 25 | DateInput.addAttributes( /** @lends module:"montage/ui/date-input.reel".DateInput# */{ |
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 | */ | ||
16 | max: null, | 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 | */ | ||
17 | min: null, | 38 | min: null, |
18 | step: null // 'any' or a floating point number | 39 | |
40 | /** | ||
41 | The amount the date changes with each step. | ||
42 | @type {string|number} | ||
43 | @default null | ||
44 | */ | ||
45 | step: null | ||
19 | }); \ No newline at end of file | 46 | }); \ No newline at end of file |