aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties.reel/sections/custom-rows/dual-row.reel/dual-row.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-01 15:00:48 -0800
committerValerio Virgillito2012-03-01 15:00:48 -0800
commit42d78d11764dca5df6c7d01f3221f398bee17152 (patch)
treee5c4ed2529de34ee1fae5da622563c78aa8b0ff7 /js/panels/properties.reel/sections/custom-rows/dual-row.reel/dual-row.js
parentb09956e4a9a35c5588cc7cd1f01efb617cbe0884 (diff)
downloadninja-42d78d11764dca5df6c7d01f3221f398bee17152.tar.gz
Squashed commit of the workspace-bugs
- Panels fixes. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/properties.reel/sections/custom-rows/dual-row.reel/dual-row.js')
-rwxr-xr-xjs/panels/properties.reel/sections/custom-rows/dual-row.reel/dual-row.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/js/panels/properties.reel/sections/custom-rows/dual-row.reel/dual-row.js b/js/panels/properties.reel/sections/custom-rows/dual-row.reel/dual-row.js
new file mode 100755
index 00000000..72d216ca
--- /dev/null
+++ b/js/panels/properties.reel/sections/custom-rows/dual-row.reel/dual-row.js
@@ -0,0 +1,53 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9
10exports.DualRow = Montage.create(Component, {
11 id: {
12 value: null
13 },
14
15 label: {
16 value: null
17 },
18
19 label2:{
20 value: null
21 },
22
23 content: {
24 value: null
25 },
26
27 content2: {
28 value: null
29 },
30
31 eventDelegate: {
32 value: null
33 },
34
35 divider: {
36 value: false
37 },
38
39 prepareForDraw: {
40 value: function() {
41 if (this.divider) this.element.appendChild(document.createElement("hr"));
42 if(this.label !== null) {
43 this.element.getElementsByClassName("lbl")[0].innerHTML = this.label + ":";
44 }
45 if(this.label2 !== null) {
46 this.element.getElementsByClassName("lbl")[1].innerHTML = this.label2 + ":";
47 } else {
48 this.element.getElementsByClassName("lbl")[1].style.display = "none";
49 }
50 }
51 }
52
53}); \ No newline at end of file