From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- .../custom-rows/dual-row.reel/dual-row.html | 67 ++++++++++++++++++++++ .../sections/custom-rows/dual-row.reel/dual-row.js | 53 +++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html create mode 100644 js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js (limited to 'js/panels/properties/sections/custom-rows/dual-row.reel') diff --git a/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html b/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html new file mode 100644 index 00000000..0398ff4c --- /dev/null +++ b/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.html @@ -0,0 +1,67 @@ + + + + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js b/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js new file mode 100644 index 00000000..72d216ca --- /dev/null +++ b/js/panels/properties/sections/custom-rows/dual-row.reel/dual-row.js @@ -0,0 +1,53 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage/core/core").Montage; +var Component = require("montage/ui/component").Component; + +exports.DualRow = Montage.create(Component, { + id: { + value: null + }, + + label: { + value: null + }, + + label2:{ + value: null + }, + + content: { + value: null + }, + + content2: { + value: null + }, + + eventDelegate: { + value: null + }, + + divider: { + value: false + }, + + prepareForDraw: { + value: function() { + if (this.divider) this.element.appendChild(document.createElement("hr")); + if(this.label !== null) { + this.element.getElementsByClassName("lbl")[0].innerHTML = this.label + ":"; + } + if(this.label2 !== null) { + this.element.getElementsByClassName("lbl")[1].innerHTML = this.label2 + ":"; + } else { + this.element.getElementsByClassName("lbl")[1].style.display = "none"; + } + } + } + +}); \ No newline at end of file -- cgit v1.2.3