aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties/section.reel/section.js
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/panels/properties/section.reel/section.js
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/panels/properties/section.reel/section.js')
-rw-r--r--js/panels/properties/section.reel/section.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/js/panels/properties/section.reel/section.js b/js/panels/properties/section.reel/section.js
new file mode 100644
index 00000000..b246c171
--- /dev/null
+++ b/js/panels/properties/section.reel/section.js
@@ -0,0 +1,30 @@
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.Section = Montage.create(Component, {
11
12 name: {
13 value: "Panel"
14 },
15
16 slot: {
17 value: null
18 },
19
20 content: {
21 value: null
22 },
23
24 prepareForDraw: {
25 value: function() {
26 this.element.getElementsByClassName("title")[0].innerHTML = this.name;
27 this.slot.content = this.content;
28 }
29 }
30}); \ No newline at end of file