parent55
Posts: 0
Joined: Fri Apr 24, 2015 2:52 am

What is javascript to change button from swatchA to swatchB?

I've been looking in the Appery.io documentation, stackoverflow, and books. Now I'll try this. All I want to do is use javascript to dynamically change a button component from the swatchA to swatchB color. It seems like this should be a simple Appery call, but what is it?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

What is javascript to change button from swatchA to swatchB?

Hello,

Please add/remove swatch classes for that. e.g.:

Apperyio("buttonName").removeClass("ui-btn-a");
Apperyio("buttonName").addClass("ui-btn-b");

Return to “Issues”