Invoke javascript in interactive server mode

1 Answer 12 Views
General Discussions
Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
Martin Herløv asked on 16 Jun 2024, 12:19 PM

I am trying to create a ThemeSwitcher component based on the article How to Toggle Between Light and Dark Modes in Blazor

Can this be down in interactive server mode or only in wasm mode?
Has anyone had success with mixed mode using Telerik? 

I am used to only create hosted WASM apps. Choosing between server and client render modes. I would choose client.

Getting Started with Blazor’s New Render Modes in .NET 8 (telerik.com)

Blazor RootComponent - Using with Per Page/Component Interactivity Location - Telerik UI for Blazor

 

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 19 Jun 2024, 01:38 PM

Hello Martin Herløv,

You can use the JS Interop in both Server and WebAssembly applications. I am curious to find out what difficulties you are facing when implementing a theme switcher in your app. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
General Discussions
Asked by
Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or