1. #1
    Sencha Premium Member
    Join Date
    Jun 2007
    Posts
    216
    Vote Rating
    0
    end-user is on a distinguished road

      0  

    Default DOM walking methods?

    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,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      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.

Thread Participants: 1