stevew
Posts: 0
Joined: Thu Jun 19, 2014 12:46 pm

Change theme at runtime?

Is it possible.
If so what is the syntax please?

Cheers

SteveW

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Change theme at runtime?

Hi Steve,

I think you can do it using jQuery :: http://forum.jquery.com/topic/how-to-...

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Change theme at runtime?

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.

Return to “Issues”