aboutsummaryrefslogtreecommitdiff
path: root/js/panels
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels')
-rw-r--r--js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js8
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");