aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Components/ComponentsPanelBase.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Components/ComponentsPanelBase.reel')
-rwxr-xr-xjs/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js54
1 files changed, 53 insertions, 1 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
index b4eec771..dcb69255 100755
--- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
+++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
@@ -23,6 +23,36 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component
23 "text": "styles", 23 "text": "styles",
24 "children": [ 24 "children": [
25 { 25 {
26 "text": "Widgets",
27 "children": [
28 {
29 "text": "Feed Reader",
30 "dataFile" : "node_modules/components-data/feed-reader.json",
31 "component": "feedreader"
32 },
33 {
34 "text": "Map",
35 "dataFile" : "node_modules/components-data/map.json",
36 "component": "map"
37 },
38 {
39 "text": "Picasa Carousel",
40 "dataFile" : "node_modules/components-data/picasa-carousel.json",
41 "component": "picasa-carousel"
42 },
43 {
44 "text": "Search Bar",
45 "dataFile" : "node_modules/components-data/searchfield.json",
46 "component": "searchfield"
47 },
48 {
49 "text": "Youtube Channel",
50 "dataFile" : "node_modules/components-data/youtube-channel.json",
51 "component": "youtube-channel"
52 }
53 ]
54 },
55 {
26 "text": "Montage Components", 56 "text": "Montage Components",
27 "children": [ 57 "children": [
28 { 58 {
@@ -50,7 +80,7 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component
50 "dataFile" : "node_modules/components-data/number-input.json", 80 "dataFile" : "node_modules/components-data/number-input.json",
51 "component": "numberInput" 81 "component": "numberInput"
52 }, 82 },
53 { 83 {
54 "text": "Select Input", 84 "text": "Select Input",
55 "dataFile" : "node_modules/components-data/select.json", 85 "dataFile" : "node_modules/components-data/select.json",
56 "component": "select" 86 "component": "select"
@@ -313,6 +343,7 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component
313 el.setAttribute("type", "range"); 343 el.setAttribute("type", "range");
314 break; 344 break;
315 case "textfield": 345 case "textfield":
346 case "searchfield":
316 el = NJUtils.makeNJElement("input", "Textfield", "component"); 347 el = NJUtils.makeNJElement("input", "Textfield", "component");
317 el.elementModel.pi = "TextfieldPi"; 348 el.elementModel.pi = "TextfieldPi";
318 el.setAttribute("type", "text"); 349 el.setAttribute("type", "text");
@@ -326,6 +357,27 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component
326 el.elementModel.pi = "ToggleButtonPi"; 357 el.elementModel.pi = "ToggleButtonPi";
327 el.innerHTML = "Off"; 358 el.innerHTML = "Off";
328 break; 359 break;
360 case "map":
361 el = NJUtils.makeNJElement("div", "Map", "component");
362 el.elementModel.pi = "MapPi";
363 el.elementModel.isComponent = true;
364 break;
365 case "feedreader":
366 el = NJUtils.makeNJElement("div", "Feed Reader", "component");
367 el.elementModel.pi = "FeedReaderPi";
368 el.elementModel.isComponent = true;
369 break;
370 case "picasa-carousel":
371 el = NJUtils.makeNJElement("div", "Picasa Carousel", "component");
372 el.elementModel.pi = "PicasaCarouselPi";
373 el.elementModel.isComponent = true;
374 break;
375 case "youtube-channel":
376 el = NJUtils.makeNJElement("div", "Youtube Channel", "component");
377 el.elementModel.pi = "YoutubeChannelPi";
378 el.elementModel.isComponent = true;
379 break;
380
329 } 381 }
330 382
331 return el; 383 return el;