Results 1 to 3 of 3

Thread: [2.0a1][CLOSED] BasicForm.render and applyTo

  1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    1
    Vote Rating
    0
      0  

    Default [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;
    f.render();

    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?

    Brian

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,584
    Vote Rating
    873
      0  

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    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.
    Twitter: @jackslocum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •