4 Oct 2007 1:39 PM #1
[2.0a1][CLOSED] BasicForm.render and applyTo
Posted on wrong forum, should have been 2.0 bugs
The new render method of BasicForm looks like this:
f.applyTo = f.id;
Since the container is not passed in to render, Component.render tries to find it if this.el is defined, but this.el only gets set through Component.applyToMarkup if applyTo was passed as an option to the constructor.
Instead of setting applyTo and calling render, should BasicForm.render call f.applyToMarkup(f.id)? or should Component.render check for this.applyTo?
4 Oct 2007 1:43 PM #2
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
4 Oct 2007 4:02 PM #3
You got it right, f.applyToMarkup(f.id); no call to render required. Thanks.Jack Slocum
Sencha Co-Founder, Ext JS Founder
Original author of Ext JS 1, 2 & 3.