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/bluemoon/textarea.reel | |
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/bluemoon/textarea.reel')
3 files changed, 80 insertions, 0 deletions
diff --git a/node_modules/montage/ui/bluemoon/textarea.reel/textarea.css b/node_modules/montage/ui/bluemoon/textarea.reel/textarea.css new file mode 100644 index 00000000..4164fdc9 --- /dev/null +++ b/node_modules/montage/ui/bluemoon/textarea.reel/textarea.css | |||
@@ -0,0 +1,36 @@ | |||
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/bluemoon/textarea.reel/textarea.html b/node_modules/montage/ui/bluemoon/textarea.reel/textarea.html new file mode 100644 index 00000000..850fe533 --- /dev/null +++ b/node_modules/montage/ui/bluemoon/textarea.reel/textarea.html | |||
@@ -0,0 +1,15 @@ | |||
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/bluemoon/textarea.reel/textarea.js b/node_modules/montage/ui/bluemoon/textarea.reel/textarea.js new file mode 100644 index 00000000..a5549390 --- /dev/null +++ b/node_modules/montage/ui/bluemoon/textarea.reel/textarea.js | |||
@@ -0,0 +1,29 @@ | |||
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 | @module "montage/ui/bluemoon/textarea.reel" | ||
8 | @requires montage/core/core | ||
9 | @requires montage/ui/editable-text | ||
10 | */ | ||
11 | var Montage = require("montage").Montage, | ||
12 | EditableText = require("ui/editable-text").EditableText; | ||
13 | /** | ||
14 | @class module:"montage/ui/bluemoon/textarea.reel".TextArea | ||
15 | @classdesc TextArea component - multiline text field | ||
16 | @extends module:montage/ui/editable-text.EditableText | ||
17 | */ | ||
18 | exports.TextArea = Montage.create(EditableText, /** @lends module:"montage/ui/bluemoon/textarea.reel".TextArea# */{ | ||
19 | /** | ||
20 | Description TODO | ||
21 | @private | ||
22 | */ | ||
23 | _drawSpecific: { | ||
24 | enumerable: false, | ||
25 | value: function() { | ||
26 | this.element.classList.add('montage-textarea'); | ||
27 | } | ||
28 | } | ||
29 | }); | ||