Results 1 to 5 of 5

Thread: How do I add Listeners in Sencha Architect?

  1. #1

    Default How do I add Listeners in Sencha Architect?

    Hello Everyone,

    I am trying to figure out how to add a listeners such as this:
    Code:
    listeners:{
      tap:function(){
           window.open ("#"); 
      }
    }
    On to a photo like this:
    Code:
                                {
                                    xtype : 'image',
                                    docked: 'left',
                                    src: 'images/capture.jpg',
                                    height: 157,
                                    ui: '',
                                    width: 157,
                                    html: ['<div id="header"><h2>Header</h2></div>'],
                                    listeners:{
                                      tap:function(){
                                          window.open ("#"); 
                                      }
                                    }
                                }
    But instead not directly through code I wanna do it through the Sencha Architect interface. Somebody please help me...

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488

    Default

    Using an event binding
    http://docs.sencha.com/architect/2/#...vity-section-2

    If you have any additional questions please feel free to ask
    Aaron Conran
    @aconran

  3. #3

    Default

    Thank you, yeah I have one more question here is the link cause I created another thread... I am using Sencha Architect to build my app BTW.
    http://www.sencha.com/forum/showthre...ap-function...

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    28

    Default How to add listner for pinchstart event?

    i dont know how to do it in sencha architect. i dont see pinchstart in the list of events when binding events to my container. plz explain in steps if possible.

  5. #5
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488

    Default

    Subscribe to the painted event and then attach an event handler to the Element of the container with code.
    Aaron Conran
    @aconran

Tags for this Thread

Posting Permissions

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