PDA

View Full Version : Creating custom layouts



mes-x
25 Jun 2012, 7:15 AM
Hi,

i'm trying to create a carousel layout in ExtJS 4.1.
I already did that for 4.0 and it worked fine but i got huge problems with the new ExtJS 4.1 layout-system.
The new LayoutSystem is so complex and i can't find any documentation/tutorial which methos are required to overwrite. I read all the source code (!!!) of the table-layout, card-layout, auto-layout, fit-layout, ... but most of the methods are not commented and declared as "private".

how to use the "calculate" method? who calls the calculate method? What does it mean when the calculate method sets this.done to false??? and why?
What is a width-model of an ownercontext? Do i need it?

What other methods do i need to overwrite besides the renderChildren and getRenderTree? What is beginLayoutCycle for?

So many questions and no info. Do i really have to study for weeks to understand the layouting-process??


ANY information is very helpful! Thank you very much and best regards!
Manuel

scottmartin
25 Jun 2012, 7:59 AM
Moved to QA

Scott.

SusannaKing
22 Feb 2013, 11:53 AM
I have the same questions about the layout scripts. I can't find the reposted question in the 4.x Q&A forum. Would you mind linking to it? Thanks.

scottmartin
22 Feb 2013, 11:56 AM
This is the QA forums .. the thread was moved here, not re-posted.