aboutsummaryrefslogtreecommitdiff
path: root/user-document-templates
diff options
context:
space:
mode:
Diffstat (limited to 'user-document-templates')
-rw-r--r--user-document-templates/montage-application-cloud/main.reel/main.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/user-document-templates/montage-application-cloud/main.reel/main.js b/user-document-templates/montage-application-cloud/main.reel/main.js
index b4ed049f..2e331cdc 100644
--- a/user-document-templates/montage-application-cloud/main.reel/main.js
+++ b/user-document-templates/montage-application-cloud/main.reel/main.js
@@ -52,6 +52,21 @@ exports.Main = Montage.create(Component, {
52 .end(); 52 .end();
53 53
54 break; 54 break;
55 case "Textfield":
56 var tf = require.async(componentType.path)
57 .then(function (tf) {
58 var buttonObj = tf["Textfield"];
59 var btIns = buttonObj.create();
60
61 btIns.element = containerElement;
62 btIns.deserializedFromTemplate();
63
64 btIns.needsDraw = true;
65 btIns.value = "Button";
66 callback(btIns, containerElement);
67 })
68 .end();
69 break
55 case "Checkbox": 70 case "Checkbox":
56 component = Checkbox.create(); 71 component = Checkbox.create();
57 component.element = containerElement; 72 component.element = containerElement;
@@ -135,11 +150,6 @@ exports.Main = Montage.create(Component, {
135 component.element = containerElement; 150 component.element = containerElement;
136 component.needsDraw = true; 151 component.needsDraw = true;
137 break; 152 break;
138 case "Textfield":
139 component = Textfield.create();
140 component.element = containerElement;
141 component.needsDraw = true;
142 break;
143 case "Toggle": 153 case "Toggle":
144 component = Toggle.create(); 154 component = Toggle.create();
145 component.element = containerElement; 155 component.element = containerElement;