From 8592cfb89db05f0e52d8c1b8c7046e6f49e3522d Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Wed, 1 Feb 2012 00:09:27 -0800 Subject: Adding a montage framework copy for the user document Adding a new montage copy containing the latest version of montage to use the new native widgets Signed-off-by: Valerio Virgillito --- .../montage-user/ui/textarea.reel/textarea.js | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 node_modules/montage-user/ui/textarea.reel/textarea.js (limited to 'node_modules/montage-user/ui/textarea.reel') diff --git a/node_modules/montage-user/ui/textarea.reel/textarea.js b/node_modules/montage-user/ui/textarea.reel/textarea.js new file mode 100644 index 00000000..f812fb97 --- /dev/null +++ b/node_modules/montage-user/ui/textarea.reel/textarea.js @@ -0,0 +1,37 @@ +/* + 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. +
*/ + +var Montage = require("montage").Montage, +Component = require("ui/component").Component, +TextInput = require("ui/text-input").TextInput; + +var TextArea = exports.TextArea = Montage.create(TextInput, { + + textContent: { + get: function() { + return this.value; + }, + set: function(v) { + this.value = v; + } + } + +}); + +TextArea.addAttributes({ + autofocus: null, + cols: null, + dirname: null, + disabled: {dataType: 'boolean'}, + form: null, + maxlength: null, + name: null, + placeholder: null, + readonly: {dataType: 'boolean'}, + required: {dataType: 'boolean'}, + rows: null, + wrap: null +}); -- cgit v1.2.3