Araberen
2 Dec 2011, 5:25 PM
Hi,
Let's say I've built a panel with multiple complex line items. The whole built was dynamic and I didn't keep a track of their creation, but it's still there with the UI of course.
Let's there is a button in those complex lines that is supposed to delete the line itself (and all its child components). So, on the click, I have access on this, for the button, but how do I get the whole panel in which I put my elements? That's on that panel that I want to apply the remove method...
Is that clear? ^^
I've tried getRegion() and getBox(), but it's not that.
I could add a CSS class for the panel corresponding to the whole line and use a up() then to get that panel, but I wonder if there is not an Ext JS method to get the parent in which developers put there elements...
Let's say I've built a panel with multiple complex line items. The whole built was dynamic and I didn't keep a track of their creation, but it's still there with the UI of course.
Let's there is a button in those complex lines that is supposed to delete the line itself (and all its child components). So, on the click, I have access on this, for the button, but how do I get the whole panel in which I put my elements? That's on that panel that I want to apply the remove method...
Is that clear? ^^
I've tried getRegion() and getBox(), but it's not that.
I could add a CSS class for the panel corresponding to the whole line and use a up() then to get that panel, but I wonder if there is not an Ext JS method to get the parent in which developers put there elements...