I can’t found any property in sparks’s ToggleButton that allow me to press it from code. I tested setCurrentState(“down”) method, but this way button not dispatching click event i think.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll have to manually create a click event and dispatch it to simulate a “click in code”. Conceptually something like this:
If this doesn’t switch the toggle state, you may have to do so manually, and your original answer has that code.