This is a migrated thread and some comments may be shown as answers.

How to switch beetween themes

1 Answer 524 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arnaud
Top achievements
Rank 1
Arnaud asked on 20 Sep 2020, 08:40 AM

Hi,

On most examples on telerik site there is a menu to switch between themes but I didn't managed to find some examples on how to actually implement it?

Any help ?

Thanks,

Arnaud.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 22 Sep 2020, 07:04 AM

Hi Arnaud,

Below you can find example which shows how to achieve the desired behavior by dynamically setting `link` element `href` prop to different themes from unpkg. The relevant code can be found in `App.js` and `ThemeChooser.jsx` files:

- https://stackblitz.com/edit/github-kebhl2?file=src%2FApp.js

Regards,
Vladimir Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Arnaud
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or