9 Aug 2010 2:57 AM #1
Multiple Instance of the same button
I have a panel with card layout. There is a add button with common function in all the inner cards.
I set my button to a variable and gave the variable to each card bit only 1 instance will work. So I basically had to make 4 of the same buttons to get it to render in different card.
Why is it like this? Am i doing something wrong. I did not use a id in any of the elements.
9 Aug 2010 4:24 AM #2
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
You can't use the same component in multiple instances.
Instead, you should use some kind of factory function to return you an instance of the button.Evan Trimboli
Twitter - @evantrimboli
Don't be afraid of the source code!
By wysman in forum Ext Designer: Help & DiscussionReplies: 7Last Post: 9 Jun 2010, 5:56 AM
By Uzair Khan in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 4 Mar 2010, 12:58 PM
By Love Yao in forum Ext GWT: DiscussionReplies: 2Last Post: 21 Jan 2010, 10:01 PM
By genio in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 26 Feb 2009, 9:20 AM
By arthurakay in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 15 Oct 2008, 11:12 AM