-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle 组件参考 #2878
Comments
filePath: zh/ui-system/components/editor/toggle.md 只介绍了clickEvent 没介绍 checkEvent,checkCallback(tag:toggle, eventType, customEventData){} 会在属性isChecked改变时触发,一般点击在clickEvent触发后isChecked才改变,所以checkEvent一般在clickEvent后。 |
我观察到checkCallback中的eventType是个固定值,从结构来看似乎有其他方式影响,也许不只是isChecked改变会触发checkEvent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/ui-system/components/editor/toggle.md
callback(tag:toggle, eventType, customEventData){
tag.nane = name+""
The text was updated successfully, but these errors were encountered: