View Full Version : DOM walking methods?
end-user
26 Oct 2007, 9:50 AM
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).
Animal
27 Oct 2007, 2:14 AM
Ext 2.0: http://extjs.com/deploy/dev/docs/?class=Ext.Element&member=prev
Ext 1.x: http://extjs.com/deploy/ext/docs/output/Ext.Element.html#getPrevSibling (Note that it returns an HtmlElement, so you'll have to use Ext.fly(el.getPrevSibling()).addClass("foo") or whetever.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.