11 Dec 2006 9:54 AM #1
I was looking at the lasted svn code and your refactoring of BasicDialog and the buttons. It made me to think to go back and look at some of my code. At one point I overrode addButton to build the buttons array as a MixedCollection rather than simple array, so I could then build
showButtons(), hideButtons() which use 'each' to do their thing. It's not a big deal for me to tweak my version to account for your latest, but maybe it's something to incorporate into the base.
Rather than use MixedCollection, maybe it's better to use CompositeElement. That way you wouldn't have to add indivdual methods to operate on the collection (e.g showButtons). You could just access a buttons property to get the CE and call show, hide, disable, etc.
By neongrau in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 26 Mar 2007, 5:47 AM
By kaoz in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 22 Feb 2007, 2:51 AM
By j555 in forum Ext 1.x: Help & DiscussionReplies: 7Last Post: 18 Dec 2006, 1:14 PM