journey.config

Returns information about the app's configured themes. See the Component Styling and Configuration section for further information.

PropertyDescriptionExample

setTheme

Change the current theme to one of the themes defined in app-level config.json.

journey.config.setTheme("admin") In this example the admin theme will be applied. (Note: currently this will not throw an Exception if a non-existing theme is set, thus use the next method to retrieve the available themes)

getThemes

Returns an array of available theme names.

getTheme

Returns the name of the current active theme.

getComputedThemes

Returns an array of the theme names the current theme is inheriting (or extends) from.

getComputedTheme

Returns a JSON object representing the complete and computed theme config for the active theme. This is useful for debugging theme configuration issues, as is covered in more detail here.

Last updated