View Full Version : Undocumented Component methods
abierbaum
29 Nov 2010, 6:02 AM
I keep seeing methods like initComponent, afterRender, etc come up in answers on the forum and in the example code. I think I may be able to guess what they do, but I can't find documentation in the API docs. Is there a description of these and other methods anywhere that I can use to understand how the various components and panels work in Sencha Touch?
evant
29 Nov 2010, 2:09 PM
If they're undocumented they are protected/private. afterRender/onRender/initComponent are template methods for you to hook into the component lifecycle.
abierbaum
30 Nov 2010, 7:59 AM
If they're undocumented they are protected/private. afterRender/onRender/initComponent are template methods for you to hook into the component lifecycle.
Is the component life cycle documented somewhere or is there a tutorial on the web about how to extend components?
mrsunshine
30 Nov 2010, 9:21 AM
For ExtJS it is well documented in the book "ExtJS in action" by Jay Garcia, i think this chapter was free available on ajaxian.com http://extjsinaction.com/136
it should be similar in Sencha Touch
abierbaum
9 Dec 2010, 8:01 AM
For ExtJS it is well documented in the book "ExtJS in action" by Jay Garcia, i think this chapter was free available on ajaxian.com http://extjsinaction.com/136
it should be similar in Sencha Touch
Thanks for the pointer. That was just what I needed. I had the book on my desk but had not read it yet because I didn't know if Sencha Touch was similar enough. This is one of those black box areas that I really wish was documented more completely in the Sencha Touch documentation because it comes up in all the examples but is completely undocumented as to what is actually happening.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.