Solved
Toggle button
Is it possible to change toggle button state?
Is it possible to change toggle button state?
Hello heyo,
Yes, by default the toggle button will react when you click on it and you can get the status of your toggle button with this function :
toggleButton1.getState()If you want to set a state yourself, you can use this function :
toggleButton1.forceState(!toggleButton1.getState());
// here it will invert your toggle button state, so if true then false, and if false then trueI created a small example that you can get inspiration from if you want.
/Osman
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.