diff options
Diffstat (limited to 'node_modules/montage/ui/textarea.reel')
-rwxr-xr-x | node_modules/montage/ui/textarea.reel/textarea.css | 36 | ||||
-rwxr-xr-x | node_modules/montage/ui/textarea.reel/textarea.html | 15 | ||||
-rw-r--r--[-rwxr-xr-x] | node_modules/montage/ui/textarea.reel/textarea.js | 48 |
3 files changed, 28 insertions, 71 deletions
diff --git a/node_modules/montage/ui/textarea.reel/textarea.css b/node_modules/montage/ui/textarea.reel/textarea.css deleted file mode 100755 index 4164fdc9..00000000 --- a/node_modules/montage/ui/textarea.reel/textarea.css +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
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 | .montage-textarea { | ||
8 | width: 300px; | ||
9 | height: 100px; | ||
10 | line-height: 1em; | ||
11 | z-index: 1; | ||
12 | cursor: pointer; | ||
13 | background-color: hsl(0, 0%, 80%); | ||
14 | border: 1px solid hsl(0, 0%, 40%); | ||
15 | padding: 5px; | ||
16 | font-size: 1.0em; | ||
17 | } | ||
18 | |||
19 | .montage-textarea:focus { | ||
20 | background-color: hsl(0, 100%, 99%); | ||
21 | border: 2px solid hsl(0, 0%, 40%); | ||
22 | } | ||
23 | |||
24 | .montage-text-invalid { | ||
25 | border: 2px solid #E73525; | ||
26 | border-style: dashed; | ||
27 | } | ||
28 | |||
29 | .montage-error-text { | ||
30 | /*color: #E73525; | ||
31 | margin: 2px 0; | ||
32 | background-image: url(dialog_warning.png); | ||
33 | background-repeat: no-repeat; | ||
34 | padding: 5px 0 5px 32px; | ||
35 | */ | ||
36 | } | ||
diff --git a/node_modules/montage/ui/textarea.reel/textarea.html b/node_modules/montage/ui/textarea.reel/textarea.html deleted file mode 100755 index 850fe533..00000000 --- a/node_modules/montage/ui/textarea.reel/textarea.html +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html> | ||
8 | <head> | ||
9 | <title></title> | ||
10 | <link rel="stylesheet" type="text/css" href="textarea.css"> | ||
11 | </head> | ||
12 | <body> | ||
13 | |||
14 | </body> | ||
15 | </html> | ||
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 | }); |