sencha touch textfield clear event

前端 未结 3 1420
迷失自我
迷失自我 2020-12-21 08:43

I\'m trying to implement a list filter in a text field in sencha touch. For example, I\'d have a bunch of contacts, and when I typed in the field, it might filter by name. W

3条回答
  •  被撕碎了的回忆
    2020-12-21 08:58

    For sencha touch 2.0 users:

    If your using new mvc structure, you can use this in the controller init

    this.control({    
         '#yourTextFieldId clearicon': {
              tap: function(){console.log('ClearICON tapped');}
         }
    ....
    )};
    

提交回复
热议问题