-
3 Aug 2012 10:10 PM #1
Promote To Class: How To Introduce A Local Variable?
Promote To Class: How To Introduce A Local Variable?
Hello,
After I promoted a component to a class, I'd like to be able to add a class variable so I can reference it across that instance. Is this possible in Architect?
Thanks.
-
6 Aug 2012 7:48 AM #2
-
6 Aug 2012 8:03 AM #3
Add an itemId to the promoted instance, you can then retrieve it via a component query and/or getComponent call.
Aaron Conran
@aconran
Sencha Architect Development Team
-
6 Aug 2012 8:24 AM #4
Hmm. I don't want to assign an id to the instance. I want to introduce a new class variable. You know, like in Java or C++.
-
6 Aug 2012 8:34 AM #5
Aaron you answered my question in another thread.
http://www.sencha.com/forum/showthread.php?235406-How-can-I-create-custom-property-with-custom-type
-
6 Aug 2012 8:41 AM #6
Oh... you mean a custom configuration on your class?
http://www.sencha.com/forum/showthre...th-custom-typeAaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote