diff options
author | Valerio Virgillito | 2012-02-09 00:52:39 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-09 00:52:39 -0800 |
commit | e2539230b8a297fa972af6d53fe9de3ef2ad43fa (patch) | |
tree | c82ad619ce1babb3957e044c48d25792e2788c8e /user-document-templates/montage-application-cloud | |
parent | c7df002135328edac03e72a1e4b331b2c72667f8 (diff) | |
download | ninja-e2539230b8a297fa972af6d53fe9de3ef2ad43fa.tar.gz |
Switching the components panel to use the new ninja tree component.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'user-document-templates/montage-application-cloud')
-rw-r--r-- | user-document-templates/montage-application-cloud/main.reel/main.js | 20 |
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; |