Page History
...
The MVC UI has two default themes (Forms theme and Dashboard theme) and has support for custom made themes. A theme is basically a set of files and some configuration that consists of the following components:
Description | Location | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Index file | StringTemplate index file | JAR or
| ||||||||||||
Web resources | JavaScript, CSS, images, etc. | JAR or
| ||||||||||||
Configuration | Properties in the
|
|
A theme can be part of a custom plugin JAR (for example the Dashboard plugincomponent) but can also just be a collection of files located in
Include Page | ||||
---|---|---|---|---|
|
...
A default Blueriq index page is injected with a template context that features the following properties:
Property | Type | Description | |
---|---|---|---|
theme | String | Name of the theme currently selected | |
apiBasePath | String | Base path for the web API | |
webResourcesBasePath | String | Base path for web resources | |
extensions | Object (ExtensionContext) | Contains all registered CSS and JavaScript files | |
cssExtensionUrls | String[] | URLs to all registered CSS files | |
jsExtensionUrls | String[] | URLs to all registered JavaScript files | |
sessionId | String | Current session id | |
currentPageJson | String | Current page in JSON format | |
developmentMode | boolean | Indicates whether or not the application runs in development mode | |
sessionTimeout | int | Configured session timeout in seconds |
When creating a custom theme you need to provide a StringTemplate index file.
...
Overview
Content Tools