Ext.Label
not intended for the tap
event. However, you can still achieve this through the tap
event on the HTML element of the label, for example:
label.getContentEl().on{'tap', handler_function,this}
But Sencha Touch does not provide a tap
event on Ext.Label
, which is a child of Ext.Component
, so when you try to use the tap event on a shortcut, this is not the best practice.
The best approach is to use Ext.Button
with the following 2 configurations:
{ ui: 'plain', cls: 'btnCls', }
and in your CSS, make your background transparent.
source share