Results 1 to 2 of 2

Thread: DOM walking methods?

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2007
    Posts
    216
    Vote Rating
    0
      0  

    Default DOM walking methods?

    Is there a getPrevSibling() method that will return the Ext element instead of the HTML one? (like up() vs findParentNode()) The trouble is, given one specific [Ext] element, I want to reach up to the sibling immediately before it, but I want to access all the Ext methods for it (yes, it does reside as an Ext object, too).

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,608
    Vote Rating
    59
      0  

    Default

    Ext 2.0: http://extjs.com/deploy/dev/docs/?cl...nt&member=prev

    Ext 1.x: http://extjs.com/deploy/ext/docs/out...getPrevSibling (Note that it returns an HtmlElement, so you'll have to use Ext.fly(el.getPrevSibling()).addClass("foo") or whetever.

Posting Permissions

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