diff options
author | Nivesh Rajbhandari | 2012-03-01 21:49:44 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-01 21:49:44 -0800 |
commit | 50058746779f714ed9b0287f49e56c9f0d35593e (patch) | |
tree | 8bfcb041824bfb492765ff814bf8576847a11436 /js/panels/properties.reel/section.reel | |
parent | 500426dea0ca95a6b45be8ea8d132cfdb4d2c940 (diff) | |
parent | ff0a956f33df034e9a009cfcb8999e469456a4b5 (diff) | |
download | ninja-50058746779f714ed9b0287f49e56c9f0d35593e.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLFixes
Diffstat (limited to 'js/panels/properties.reel/section.reel')
-rwxr-xr-x | js/panels/properties.reel/section.reel/section.html | 50 | ||||
-rwxr-xr-x | js/panels/properties.reel/section.reel/section.js | 30 |
2 files changed, 80 insertions, 0 deletions
diff --git a/js/panels/properties.reel/section.reel/section.html b/js/panels/properties.reel/section.reel/section.html new file mode 100755 index 00000000..b72a91b3 --- /dev/null +++ b/js/panels/properties.reel/section.reel/section.html | |||
@@ -0,0 +1,50 @@ | |||
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 lang="en"> | ||
8 | <head> | ||
9 | <script type="text/montage-serialization"> | ||
10 | { | ||
11 | "owner": { | ||
12 | "module" : "js/panels/properties.reel/section.reel", | ||
13 | "name" : "Section", | ||
14 | "properties" : { | ||
15 | "element" : {"#": "section"}, | ||
16 | "slot" : {"@": "sectionSlot"} | ||
17 | } | ||
18 | }, | ||
19 | |||
20 | "sectionSlot": { | ||
21 | "module": "montage/ui/slot.reel", | ||
22 | "name": "Slot", | ||
23 | "properties": { | ||
24 | "element": {"#": "sectionSlot"} | ||
25 | } | ||
26 | }, | ||
27 | |||
28 | "sectionSplitter": { | ||
29 | "module": "js/panels/Splitter", | ||
30 | "name": "Splitter", | ||
31 | "properties": { | ||
32 | "element": {"#": "sectionSplitter"}, | ||
33 | "panel": {"@": "sectionSlot"} | ||
34 | } | ||
35 | } | ||
36 | |||
37 | |||
38 | } | ||
39 | </script> | ||
40 | </head> | ||
41 | <body> | ||
42 | <div id="section"> | ||
43 | <h2 id="sectionSplitter" class="subSectionHeader"> | ||
44 | <section class="arrow"><div class="arrowIcon animated"></div></section> | ||
45 | <section class="title"></section> | ||
46 | </h2> | ||
47 | <div id="sectionSlot" class="animated"></div> | ||
48 | </div> | ||
49 | </body> | ||
50 | </html> \ No newline at end of file | ||
diff --git a/js/panels/properties.reel/section.reel/section.js b/js/panels/properties.reel/section.reel/section.js new file mode 100755 index 00000000..b246c171 --- /dev/null +++ b/js/panels/properties.reel/section.reel/section.js | |||
@@ -0,0 +1,30 @@ | |||
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 | var Montage = require("montage/core/core").Montage; | ||
8 | var Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.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 | ||