sencha touch :: 在搜索字段中使用ClearIcon侦听器
当用户在 searchfield 中单击/点击 ClearIcon 上的选项卡时,有没有办法监听该事件?
不舒服。那么 keyup 和更改侦听器将被忽略...
thnx!
is there a way to listen to the event, when the user clicks/tabs on the clearIcon in a seachfield?
unfort. the keyup and change listeners are ignored then...
thnx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已将以下代码放在面板的 onFirstActivate 方法上:
这会捕获清除图标单击,尽管它取决于其未记录的 css 类。
更新:
我在 sencha touch textfield clear event 中看到了针对同一问题的两个更优雅的解决方案
我想我自己会使用其中之一......
I have put the following code on the
onFirstActivate
method of the panel:this catches the clear icon click, though it depends on its undocumented css class.
UPDATE:
I see two much more elegant solutions to this same problem at sencha touch textfield clear event
I think I will use one of them myself...