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

How to change a button's value when clicked? #315

Open
e-motiv opened this issue Apr 11, 2022 · 0 comments
Open

How to change a button's value when clicked? #315

e-motiv opened this issue Apr 11, 2022 · 0 comments

Comments

@e-motiv
Copy link

e-motiv commented Apr 11, 2022

I have a pause/play button as a controller inside gui, but I am not sure if this is the right code for changing its value (pause vs play) when clicked.
I didn't find any function parameters on the function itself or onChange function. So, is this it or is there better?

gui.__controllers[0].__li.querySelector(".property-name").textContent=stop?"▶️":"⏸︎"

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