Handle event on disabled Node

。_饼干妹妹 提交于 2019-12-31 03:54:13

问题


Is there any way to handle, mouse click, for example on disabled element? My task is to have disabled list and make it enabled after double click on it.


回答1:


A disabled Node does not receive mouse or key events.

See the official documentation.

You could wrap the node into another node and handle the mouse events there in case the child node is disabled.



来源:https://stackoverflow.com/questions/30341840/handle-event-on-disabled-node

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!