-
Notifications
You must be signed in to change notification settings - Fork 15
Deploying Custom Themes for Dashboard
The steps below describe the procedure for providing Custom Themes in Dashboard
during deployment and at runtime using the user interface.
During Deployment:
-
Go to
src/webapp/resources
folder of the dashboard. UpdatethemeMapping.json
with details as shown below:// Sample data { "baseDir": "webapp/resources/customTheme", "themes": [{ "displayname": "theme1", "filename": "theme1.css", "subdir": "dir1" }, { "displayname": "theme2", "filename": "theme2.css", "subdir": "dir2" }] }
The
JSON
mentioned above requires two new directories to be created, namely dir1 and dir2(You can provide any user-friendly names). Place the theme files in their respective directories. -
Append
manifest.yml file
to the dashboard with the following keys:PRE_PROVIDED_DEFAULT_THEME_NAME: theme1 ENABLE_UPLOAD_THEME_FEATURE: true
The
PRE_PROVIDED_DEFAULT_THEME_NAME
key sets the theme1 as the default theme for theDashboard
application. TheENABLE_UPLOAD_THEME_FEATURE
keys enable the user to upload files throughDashboard's User Interface
at runtime. If you don't want the upload feature you can set key as false.
Through User Interface[At runtime]:
- If
ENABLE_UPLOAD_THEME_FEATURE
is set to true in themanifest.yml
, then themes can be uploaded/applied through the dashboard's User Interface. The uploaded/applied themes will be saved in the profile of the logged user.