Results 1 to 4 of 4

Thread: How to determine that a component is rendered?

  1. #1
    Sencha User sksoft's Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    34

    Question How to determine that a component is rendered?

    I need to set a handler which is called when my component is fully rendered (including inner components). render event is not suitable because inner component are not rendered when owner's render event is fired. Any ideas?

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Use the afterlayout event with {single: true}

  3. #3
    Sencha User sksoft's Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    34

    Default Why you choose this order?

    Thanks!
    BTW, why you choose this approach to render owner, then inner components? IMHO it's more naturally to do it inside-out.

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Who? Choose what? Huh?

    I chose nothing.

    But really how would inner Components ever get rendered if there was nothing to render them to?

Posting Permissions

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