Results 1 to 2 of 2

Thread: Multiple Instance of the same button

  1. #1
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Vote Rating

    Default 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.

  2. #2
    Sencha User evant's Avatar
    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.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. [SOLVED]Multiple instance and Id
    By wysman in forum Ext Designer: Help & Discussion
    Replies: 7
    Last Post: 9 Jun 2010, 5:56 AM
  2. Multiple clicks on button issue
    By Uzair Khan in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Mar 2010, 12:58 PM
  3. DatePicker,can we get the instance of the Button in it?
    By Love Yao in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 21 Jan 2010, 10:01 PM
  4. Same button multiple time on the page
    By genio in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 26 Feb 2009, 9:20 AM
  5. Ext.Button on multiple toolbars
    By arthurakay in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Oct 2008, 11:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts