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