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-number.reel/input-number.js | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 node_modules/montage/ui/native/input-number.reel/input-number.js (limited to 'node_modules/montage/ui/native/input-number.reel/input-number.js') diff --git a/node_modules/montage/ui/native/input-number.reel/input-number.js b/node_modules/montage/ui/native/input-number.reel/input-number.js new file mode 100644 index 00000000..2fd5a15f --- /dev/null +++ b/node_modules/montage/ui/native/input-number.reel/input-number.js @@ -0,0 +1,48 @@ +/* + 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-number.reel" + @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 the a <input type="date"> element with binding support for the element's standard attributes. + @class module:"montage/ui/input-number.reel".InputNumber + @extends module:montage/ui/text-input.TextInput + */ +var InputNumber = exports.InputNumber = Montage.create(TextInput, { + +}); + +InputNumber.addAttributes(/** @lends module:"montage/ui/input-number.reel".InputNumber */{ + +/** + The maximum value displayed but the number control. + @type {number} + @default null +*/ + max: {dataType: 'number'}, + +/** + The minimum value displayed but the number control. + @type {number} + @default null +*/ + min: {dataType: 'number'}, + +/** + The amount the number changes with each step. + @type {number} + @default null +*/ + step: null // number or 'any' +}); -- cgit v1.2.3