The JavaScript API projects
, project
and form
interfaces have functions that allow a different
Theme to be used:
projects.setTheme("myDarkTheme")
all
Projects switch to use myDarkTheme.
project.myProject.setTheme("myDarkTheme")
myProject switches to use myDarkTheme.
form.myForm.setTheme("myDarkTheme")
myForm switches to use myDarkTheme.
Using one of these functions inside a
Button Control's On Click event, will change the Theme of the entire application, a part of the application, or a single
Form, when the end-user clicks the button in the browser.