Blazor WebAssembly : Dark/Light Theme Switch - EP31

Опубликовано: 28 Май 2021
на канале: CuriousDrive: Solve Coding Problems & Win Prizes!
6,704
72

Hello Everyone,
In this tutorial, I am implementing a feature to switch between light & dark theme for Blazor WebAssembly application. You are going to need to create CSS files for your themes and then create a JavaScript function to switch between these themes. We can use JavaScript Interop to call JavaScript function from Razor Components.

Source Code - https://github.com/CuriousDrive/Blazi...
Ed's EBook - https://www.telerik.com/campaigns/bla...

0:00 Approach
3:20 Writing JavaScript function to change themes
5:50 Calling JavaScript function from Razor Component
9:30 Setting the theme on User Login

#Blazor #Dark #Theme

Subscribe here -    / @curiousdrive  
Talk to us on -   / curiousdrive  

Like our page -   / curiousdrive  
Follow us on -   / curious_drive  
Follow us on -   / curiousdrive  

Make a donation - https://www.paypal.me/curiousdrive
Be a member -   / curiousdrive  

#CuriousDrive #WeLoveCoding


Смотрите видео Blazor WebAssembly : Dark/Light Theme Switch - EP31 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CuriousDrive: Solve Coding Problems & Win Prizes! 28 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,704 раз и оно понравилось 72 людям.