Persist the current theme in a cookie. Requires ThemeService to be registered in the DI container.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class CookieThemeServiceInitializes a new instance of the CookieThemeService class.
public CookieThemeService(Microsoft.JSInterop.IJSRuntime jsRuntime, ThemeService themeService, Microsoft.Extensions.Options.IOptions<CookieThemeServiceOptions> options)
| Type | Name | Description |
|---|---|---|
| Microsoft.JSInterop.IJSRuntime | jsRuntime | |
| ThemeService | themeService | |
| Microsoft.Extensions.Options.IOptions<CookieThemeServiceOptions> | options |