How to check if I am displaying a visual force page in Lighting or Classic Experience — Bartosz Michał Borowiec


Visualforce page can be displayed in the classic or the lighting experience. Unfortunately sometimes some parts of the page have to be displayed in a slightly different way. The good news is yes it is possible. From Visualforce There is a variable $User.UIThemeDisplayed that stores this information. From Apex In the apex code You have […]

via How to check if I am displaying a visual force page in Lighting or Classic Experience — Bartosz Michał Borowiec

Advertisements