Can't change class of onyx button.

edited January 2013 in Newbie Questions
Hey Folks,

I have an onyx button that has the onyx-affirmative class. This button is named "toggle" and ontap I try to do the following:
this.$.toggle.setClassAttribute("onyx-negative");
this.$.toggle.render();
And it doesn't work, the button looses all styling. I becomes a regular HTML button.

Anyone has a clue?

Thanks
andre

Comments

Sign In or Register to comment.