开发者

ButtonField click event

开发者 https://www.devze.com 2022-12-28 07:09 出处:网络
i am not implementing touch event. i am usi开发者_Go百科ng FieldChangeListener the problem which i am facing is , if i am clicking outside the CustomButtonField then also the click event is generated

i am not implementing touch event. i am usi开发者_Go百科ng FieldChangeListener the problem which i am facing is , if i am clicking outside the CustomButtonField then also the click event is generated how should i restrict only to the CustomButtonField.

Thanks alot


The listener will be invoked on all change events but you also get the field that changed (in the fieldChanged function), so why not use that to make sure it is your field that was "changed"?

0

精彩评论

暂无评论...
验证码 换一张
取 消