aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/date-input.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-03 22:53:07 -0700
committerValerio Virgillito2012-05-03 22:53:07 -0700
commit24b483db367291b72170f969de78efcb1a9b95bd (patch)
treea691a7803cefbfa76a6331a50cbeebcd16287d91 /node_modules/montage/ui/date-input.reel
parentdc93269cfa7c315d22d85c8217e2412749643f28 (diff)
downloadninja-24b483db367291b72170f969de78efcb1a9b95bd.tar.gz
integrating the latest montage version
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/date-input.reel')
-rw-r--r--node_modules/montage/ui/date-input.reel/date-input.js33
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*/
6var Montage = require("montage").Montage, 13var 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 &lt;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 */
12var DateInput = exports.DateInput = Montage.create(TextInput, { 22var DateInput = exports.DateInput = Montage.create(TextInput, {
13}); 23});
14 24
15DateInput.addAttributes({ 25DateInput.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