PDA

View Full Version : how can i catch tap event from textfie



Perdiga
9 Mar 2012, 11:42 AM
i am trying to do this


{
xtype: 'textfield',
id: 'myText',
clearIcon: false,
width: 90,
disabled: true,
listeners: {

tap:function(){

alert('tap');

}
}

},


but its not working ... i have tried mousedown, touch, touchstart with out success

mitchellsimoens
9 Mar 2012, 1:06 PM
listeners: {
element : 'element',
tap: function(){
alert('tap');
}
}

The element will have the listener put on the element property of the component.

Perdiga
12 Mar 2012, 3:31 AM
ok .. its working, but the event is fired twice