Skip to content
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

Open
t99t99t99 opened this issue Mar 25, 2024 · 2 comments
Open

Toggle 组件参考 #2878

t99t99t99 opened this issue Mar 25, 2024 · 2 comments

Comments

@t99t99t99
Copy link

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+""

}
@t99t99t99
Copy link
Author

filePath: zh/ui-system/components/editor/toggle.md
content:

只介绍了clickEvent 没介绍 checkEvent,checkCallback(tag:toggle, eventType, customEventData){} 会在属性isChecked改变时触发,一般点击在clickEvent触发后isChecked才改变,所以checkEvent一般在clickEvent后。

@t99t99t99
Copy link
Author

我观察到checkCallback中的eventType是个固定值,从结构来看似乎有其他方式影响,也许不只是isChecked改变会触发checkEvent

@t99t99t99 t99t99t99 reopened this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant