on 06-22-2020 6:18 PM
Hi Experts,
What I am looking for is a way to change the SAP UI5 theme after it has been rendered?
The approach mentioned in the below link is before the bootstrap happens.
https://answers.sap.com/questions/10173073/how-to-add-two-different-themes-in-one-sapui5-appl.html#
Say I want to shift between two themes - Quartz and Belize on click of a button or say even as per the example in the link, if I change my device type to mobile via debugger, I want the theme to change.
In my controller, I have access to window["sap-ui-config"] but changing it is not reflecting in the application? Is there a way to refresh/re-render the application after changing?
try this.
sap.ui.getCore().applyTheme("sap_belize_plus");
-Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot maheshkumar.palavalli - this was exactly what I was looking for.
User | Count |
---|---|
76 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.