diff options
author | Valerio Virgillito | 2012-02-01 00:09:27 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-01 00:09:27 -0800 |
commit | 8592cfb89db05f0e52d8c1b8c7046e6f49e3522d (patch) | |
tree | a6f9b5adfe16fd6232708f8a2345cd79056caca9 /node_modules/montage-user/ui/textarea.reel/textarea.js | |
parent | c6d1a1da9e7cdf477daf32410d80691eb1e828d5 (diff) | |
download | ninja-8592cfb89db05f0e52d8c1b8c7046e6f49e3522d.tar.gz |
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 <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage-user/ui/textarea.reel/textarea.js')
-rw-r--r-- | node_modules/montage-user/ui/textarea.reel/textarea.js | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<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. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage").Montage, | ||
8 | Component = require("ui/component").Component, | ||
9 | TextInput = require("ui/text-input").TextInput; | ||
10 | |||
11 | var TextArea = exports.TextArea = Montage.create(TextInput, { | ||
12 | |||
13 | textContent: { | ||
14 | get: function() { | ||
15 | return this.value; | ||
16 | }, | ||
17 | set: function(v) { | ||
18 | this.value = v; | ||
19 | } | ||
20 | } | ||
21 | |||
22 | }); | ||
23 | |||
24 | TextArea.addAttributes({ | ||
25 | autofocus: null, | ||
26 | cols: null, | ||
27 | dirname: null, | ||
28 | disabled: {dataType: 'boolean'}, | ||
29 | form: null, | ||
30 | maxlength: null, | ||
31 | name: null, | ||
32 | placeholder: null, | ||
33 | readonly: {dataType: 'boolean'}, | ||
34 | required: {dataType: 'boolean'}, | ||
35 | rows: null, | ||
36 | wrap: null | ||
37 | }); | ||