diff options
author | Valerio Virgillito | 2012-02-15 14:55:21 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-15 14:55:21 -0800 |
commit | 747616980cad14f0b65fbcc7f497ed9680a39d29 (patch) | |
tree | d04fe7a572fd6a0a17a6c631988989e9cd9e43a6 /js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | |
parent | d1bc0d3e8b3ab3341105c3e29dd2ca11a20d8931 (diff) | |
download | ninja-747616980cad14f0b65fbcc7f497ed9680a39d29.tar.gz |
Adding more components pi
Added rest of the components pi.
Missing text-input and select
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js')
-rw-r--r-- | js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js index 987cd6b5..bcb14013 100644 --- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js +++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | |||
@@ -195,6 +195,8 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component | |||
195 | return "checkbox"; | 195 | return "checkbox"; |
196 | case "select": | 196 | case "select": |
197 | return "dropdown"; | 197 | return "dropdown"; |
198 | case "number": | ||
199 | return "hottext"; | ||
198 | default: | 200 | default: |
199 | alert("Conversion not implemented for ", type); | 201 | alert("Conversion not implemented for ", type); |
200 | } | 202 | } |
@@ -287,7 +289,9 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component | |||
287 | break; | 289 | break; |
288 | case "imageComponent": | 290 | case "imageComponent": |
289 | el = NJUtils.makeNJElement("image", "Image", "component"); | 291 | el = NJUtils.makeNJElement("image", "Image", "component"); |
290 | el.elementModel.pi = "ImageComponentPi"; | 292 | el.elementModel.pi = "ImagePi"; |
293 | el.setAttribute("width", 200); | ||
294 | el.setAttribute("height", 200); | ||
291 | break; | 295 | break; |
292 | case "numberInput": | 296 | case "numberInput": |
293 | el = NJUtils.makeNJElement("input", "Number Input", "component"); | 297 | el = NJUtils.makeNJElement("input", "Number Input", "component"); |
@@ -315,7 +319,7 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component | |||
315 | break; | 319 | break; |
316 | case "textarea": | 320 | case "textarea": |
317 | el = NJUtils.makeNJElement("textarea", "TextArea", "component"); | 321 | el = NJUtils.makeNJElement("textarea", "TextArea", "component"); |
318 | el.elementModel.pi = "TextArea"; | 322 | el.elementModel.pi = "TextAreaPi"; |
319 | break; | 323 | break; |
320 | case "toggleButton": | 324 | case "toggleButton": |
321 | el = NJUtils.makeNJElement("button", "Toggle Button", "component"); | 325 | el = NJUtils.makeNJElement("button", "Toggle Button", "component"); |