PDA

View Full Version : SearchField "X" button event?



MPeg
3 Sep 2011, 12:29 AM
Hi, i'm playing with searchtext component but I can't find a way out to intercept the "X" button on the right of the UI.

Thanks and regards!

mitchellsimoens
3 Sep 2011, 5:53 AM
Ext.form.Search is an HTML5 field, not a special Sencha Touch field. Doesn't look like there is an event specially for clicking ont he 'X' but you could probably try listening for the change event. If that doesn't work, maybe the mouse events but then you'd have to figure out the dom element being clicked on.