Change theme at runtime?
Is it possible.
If so what is the syntax please?
Cheers
SteveW
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Is it possible.
If so what is the syntax please?
Cheers
SteveW
Hi Steve,
I think you can do it using jQuery :: http://forum.jquery.com/topic/how-to-...
Hello.
You can not to change theme in easy.
But swatch could be changed in Appery.io platform.
Note: code depends on what component should be changed.
Here is a some code:
1 To change "mobilecontainer" component:
pre
//Note: you should replace "ui-body-a" in the end of line with swatch you need.
Apperyio("mobilecontainer").removeClass("ui-body-a ui-body-b ui-body-c ui-body-d").addClass("ui-body-a");
/pre
2 To change "page" component:
pre
//Note: you should replace "ui-page-theme-a" in the end of line with swatch you need.
Apperyio("page19").removeClass("ui-page-theme-a ui-page-theme-b ui-page-theme-c ui-page-theme-d").addClass("ui-page-theme-a");
/pre
3 To change "header" component:
pre
//Note: you should replace "ui-bar-a" in the end of line with swatch you need.
Apperyio("mobilecontainer").removeClass("ui-bar-a ui-bar-b ui-bar-c ui-bar-d").addClass("ui-bar-a");
/pre
Regards.