Hybrid View
-
11 Jan 2013 6:34 AM #1
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
-
11 Jan 2013 11:49 AM #2
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. } } } } ] } }
-
14 Jan 2013 2:43 AM #3
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


Reply With Quote