togglebutton onChange event

edited December 2012 in Enyo 2
Hi ,

I am using onyx.togglebutton in my application as follows..
{
                    kind: "onyx.ToggleButton",
                    onChange: "toggleChange",
                    name: "demoToggle",
                    classes: "toggle-class"
                }
On rendering the page i am setting the active value programmatically like this.

this.$.demoToggle.setActive(true);

But, the onChange event occurs in this case.

I want to stop the onChange event occurance if I set the active value programmatically.

As per the togglebutton documentation the onChange will not occur if the value is changed programmatically.

Please suggest if anyone has come across such issue.

Comments

Sign In or Register to comment.