Jack,
What do think about adding a way to remove all panels from a region without having to loop thru and get ids and repeatedly call remove(), or worse doing region.panels = . LayoutRegion.removeAllPanels request [Archive] - Ext JS Forums:: [Archive] LayoutRegion.removeAllPanels request Ext: Feature Requests View Full Version : LayoutRegion.removeAllPanels request. tryanDLS. 11-02-2006, 11:50 http://extjs.com/forum/archive/index.php/t-395.htmlHOME |
Also, maybe add a flag indicating whether deactivate should be fired or not. Problem with LayoutRegion.setActivePanel ?? - Ext JS Forums:: Problem with LayoutRegion.setActivePanel ?? Ext 1.x: Bugs LayoutRegion.removeAllPanels request. tryanDLS. Ext: Feature Requests. 3. 11-02-2006 05:11 PM http://extjs.com/forum/showthread.php?t=371HOME |
deactivate is always going to fire, that is a contract with listeners. You can beginUpdate/endUpdate the layout to avoid relayouts while removing. Ext: Feature Requests [Archive] - Ext JS Forums:: [Archive] Request new features or modifications to existing ones LayoutRegion.removeAllPanels request. Move sort functionality entirely into DataModel http://extjs.com/forum/archive/index.php/f-4.htmlHOME |
I added "clearPanels()" for you. It was so simple with the new MixedCollection object in the region code. With MixedCollection you can now access panels by id or index and it greatly reduces the repetitive array handling code.
When I get the time, I am going to use the full power of MixedCollection and use it's modification events so you can add panels directly to it and have them reflected in the region. For example:
var north = layout.getRegion('north');
north.panels.add(...);
north.panels.insert(0, ...);
north.panels.replace('center1', ...);
etc.
Cool, when will you be releasing a new version of the beta code? It looks like you're starting to implement it - I see ...beta2.js in some of your code :)
Part of the testing process is putting it on my blog and seeing what it breaks... That beta2 is about 4 days behind, which is like 4 months in yui-ext time. :lol:
Nobody understands...any help please?
50 points for someone willing to do this!!!!!!!!!!?
|