1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
    HugoTrigo is on a distinguished road

      0  

    Default Unanswered: Can make a tap on a panel or in a container?

    Unanswered: Can make a tap on a panel or in a container?


    Hi,

    I created a panel/container to use as a button, formatted it all in css and wanted to make a tap to apply a control.


    Is this possible?

    Best Regards,
    Hugo Trigo

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    65
    Answers
    8
    Vote Rating
    0
    ehboym is on a distinguished road

      0  

    Default


    Hi,

    There is not tap listener for a panel so the short answer is no, you can't listen to a non-existing tap listener.
    What u can do is to place an item which does have a tap listener in that panel and listen that item's tap listener.

    For example:
    Code:
    Ext.define("WeFind.view.APanel", {
        extend: 'Ext.Panel',
        config: {
            items: [
                {
                    xtype: 'image',
                    src: './resources/images/SomeImage.png',
     
                    listeners: {
                        tap:{
                            fn: function() { //Do something or call some function. }
                        }
                    }
                }
            ]
        }
    }

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
    HugoTrigo is on a distinguished road

      0  

    Default


    I tried to run the listener on the panel and it did not work!


    I don't can get in the picture, why not have picture. I called the image through the html code.

    Thanks & Best Regards

Thread Participants: 1

Tags for this Thread