Class CookieThemeService
Persist the current theme in a cookie. Requires ThemeService to be registered in the DI container.
Inheritance
System.Object
CookieThemeService
Namespace: Radzen
Assembly: Radzen.Blazor.dll
Syntax
public class CookieThemeService : object
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 |