From 42d78d11764dca5df6c7d01f3221f398bee17152 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 1 Mar 2012 15:00:48 -0800 Subject: Squashed commit of the workspace-bugs - Panels fixes. Signed-off-by: Valerio Virgillito --- .../custom-rows/single-row.reel/single-row.html | 47 ++++++++++++++++++++ .../custom-rows/single-row.reel/single-row.js | 50 ++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100755 js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.html create mode 100755 js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js (limited to 'js/panels/properties.reel/sections/custom-rows/single-row.reel') diff --git a/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.html b/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.html new file mode 100755 index 00000000..4de3f1ae --- /dev/null +++ b/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.html @@ -0,0 +1,47 @@ + + + + + + + +
+
+ +
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js b/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js new file mode 100755 index 00000000..b606d6b8 --- /dev/null +++ b/js/panels/properties.reel/sections/custom-rows/single-row.reel/single-row.js @@ -0,0 +1,50 @@ +/* +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.SingleRow = Montage.create(Component, { + id: { + value: null + }, + + label: { + value: null + }, + + content: { + value: null + }, + + eventDelegate: { + value: null + }, + + + handleChange: { + value: function(event) { + } + }, + + handleChanging: { + value: function(event) { + this.eventDelegate({"type": "changing", "id": this.id, "prop": this.prop, "text": this.label, "value": this.value}); + } + }, + + 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 + ":"; + } + } + +}); \ No newline at end of file -- cgit v1.2.3