Class CookieThemeService
- Namespace
- Radzen
- Assembly
- Radzen.Blazor.dll
Persist the current theme in a cookie. Requires ThemeService to be registered in the DI container.
public class CookieThemeService
- Inheritance
-
CookieThemeService
- Inherited Members
Constructors
CookieThemeService(IJSRuntime, ThemeService, IOptions<CookieThemeServiceOptions>)
Initializes a new instance of the CookieThemeService class.
public CookieThemeService(IJSRuntime jsRuntime, ThemeService themeService, IOptions<CookieThemeServiceOptions> options)
Parameters
jsRuntime
IJSRuntimethemeService
ThemeServiceoptions
IOptions<CookieThemeServiceOptions>