diff options
author | Jose Antonio Marquez | 2012-02-02 18:00:45 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-02 18:00:45 -0800 |
commit | 04d89daed90c35a4393773ca2e2d0ac3a4c15cd4 (patch) | |
tree | d0041abc7379ef38b20cce148e5dea6f531b8569 /node_modules/montage/ui/textarea.reel/textarea.js | |
parent | 4d8306b638c53899403a4f0328c02bf1ab893e8f (diff) | |
parent | c630ead20487c3948fa36448d3e7d5f7b5cba782 (diff) | |
download | ninja-04d89daed90c35a4393773ca2e2d0ac3a4c15cd4.tar.gz |
Merge branch 'refs/heads/NinjaInternal' into FileIO
Conflicts:
.gitignore
js/ninja.reel/ninja.js
Diffstat (limited to 'node_modules/montage/ui/textarea.reel/textarea.js')
-rw-r--r--[-rwxr-xr-x] | node_modules/montage/ui/textarea.reel/textarea.js | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/node_modules/montage/ui/textarea.reel/textarea.js b/node_modules/montage/ui/textarea.reel/textarea.js index 44e5f0a5..f812fb97 100755..100644 --- a/node_modules/montage/ui/textarea.reel/textarea.js +++ b/node_modules/montage/ui/textarea.reel/textarea.js | |||
@@ -3,27 +3,35 @@ | |||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<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. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | /** | 6 | |
7 | @module "montage/ui/textarea.reel" | ||
8 | @requires montage/core/core | ||
9 | @requires montage/ui/editable-text | ||
10 | */ | ||
11 | var Montage = require("montage").Montage, | 7 | var Montage = require("montage").Montage, |
12 | EditableText = require("ui/editable-text").EditableText; | 8 | Component = require("ui/component").Component, |
13 | /** | 9 | TextInput = require("ui/text-input").TextInput; |
14 | @class module:"montage/ui/textarea.reel".TextArea | 10 | |
15 | @classdesc TextArea component - multiline text field | 11 | var TextArea = exports.TextArea = Montage.create(TextInput, { |
16 | @extends module:montage/ui/editable-text.EditableText | 12 | |
17 | */ | 13 | textContent: { |
18 | exports.TextArea = Montage.create(EditableText, /** @lends module:"montage/ui/textarea.reel".TextArea# */{ | 14 | get: function() { |
19 | /** | 15 | return this.value; |
20 | Description TODO | 16 | }, |
21 | @private | 17 | set: function(v) { |
22 | */ | 18 | this.value = v; |
23 | _drawSpecific: { | ||
24 | enumerable: false, | ||
25 | value: function() { | ||
26 | this.element.classList.add('montage-textarea'); | ||
27 | } | 19 | } |
28 | } | 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 | ||
29 | }); | 37 | }); |