aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-user/ui/textarea.reel/textarea.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage-user/ui/textarea.reel/textarea.js')
-rw-r--r--node_modules/montage-user/ui/textarea.reel/textarea.js37
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
7var Montage = require("montage").Montage,
8Component = require("ui/component").Component,
9TextInput = require("ui/text-input").TextInput;
10
11var 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
24TextArea.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});