aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Components
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-17 15:38:29 -0700
committerValerio Virgillito2012-03-17 15:38:29 -0700
commit11afad994a9ff5e3c8c43d8ad9cd2cf7d0147797 (patch)
treecfae7c394fb89dbed1486f6110a7b45b2c91de40 /js/panels/Components
parent9c7f7c69495175a4a5a093aeb78f078d0cb7835d (diff)
downloadninja-11afad994a9ff5e3c8c43d8ad9cd2cf7d0147797.tar.gz
adding element creation for the map and feedreader components.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Components')
-rwxr-xr-xjs/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
index 981e666f..92d21bc3 100755
--- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
+++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js
@@ -333,6 +333,7 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component
333 el.setAttribute("type", "range"); 333 el.setAttribute("type", "range");
334 break; 334 break;
335 case "textfield": 335 case "textfield":
336 case "searchfield":
336 el = NJUtils.makeNJElement("input", "Textfield", "component"); 337 el = NJUtils.makeNJElement("input", "Textfield", "component");
337 el.elementModel.pi = "TextfieldPi"; 338 el.elementModel.pi = "TextfieldPi";
338 el.setAttribute("type", "text"); 339 el.setAttribute("type", "text");
@@ -346,6 +347,16 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component
346 el.elementModel.pi = "ToggleButtonPi"; 347 el.elementModel.pi = "ToggleButtonPi";
347 el.innerHTML = "Off"; 348 el.innerHTML = "Off";
348 break; 349 break;
350 case "map":
351 el = NJUtils.makeNJElement("div", "Map", "component");
352 el.elementModel.pi = "MapPi";
353 el.elementModel.isComponent = true;
354 break;
355 case "feedreader":
356 el = NJUtils.makeNJElement("div", "Feed Reader", "component");
357 el.elementModel.pi = "FeedReaderPi";
358 el.elementModel.isComponent = true;
359
349 } 360 }
350 361
351 return el; 362 return el;