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
Printable View
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
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. }
}
}
}
]
}
}
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