2022-11-21 12:22 AM
2022-11-21 01:41 AM
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 true
I created a small example that you can get inspiration from if you want.
/Osman
2022-11-21 01:41 AM
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 true
I created a small example that you can get inspiration from if you want.
/Osman