From 8fe92b94ce5e1e2857d088752d94e19db7e3d8a8 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 17 Jun 2012 22:31:44 -0700 Subject: montage v11 merge into ninja Signed-off-by: Valerio Virgillito --- .../ui/native/input-date.reel/input-date.js | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 node_modules/montage/ui/native/input-date.reel/input-date.js (limited to 'node_modules/montage/ui/native/input-date.reel') 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 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +/** + @module "montage/ui/input-date.reel" + @requires montage/core/core + @requires montage/ui/component + @requires montage/ui/text-input +*/ +var Montage = require("montage").Montage, + Component = require("ui/component").Component, + TextInput = require("ui/text-input").TextInput; + +/** + Wraps an <input type="date"> element as a component. + @class module:"montage/ui/input-date.reel".InputDate + @extends module:montage/ui/text-input.TextInput + */ +var InputDate = exports.InputDate = Montage.create(TextInput, { +}); + +InputDate.addAttributes( /** @lends module:"montage/ui/input-date.reel".InputDate# */{ + +/** + The upper bound for the element’s value represented in the "full-date" format, (for example, 2001-05-24). + @type {string} + @default: null +*/ + max: null, +/** + The lower bound for the element’s value represented in the "full-date" format, (for example, 2001-05-24). + @type {string} + @default: null +*/ + min: null, + +/** + The amount the date changes with each step. + @type {string|number} + @default null +*/ + step: null +}); \ No newline at end of file -- cgit v1.2.3