API Reference
TablerDarkModeToggleSettings
Settings sub-builder for TablerDarkModeToggle.
Inheritance
- Object
- TablerDarkModeToggleSettings
Methods
public TablerDarkModeToggleSettings AccessibilityStorageKey(String key) #TablerDarkModeToggleSettingsSets the localStorage key for accessibility persistence.
Parameters
- key System.String
public TablerDarkModeToggleSettings AccessibilityTooltips(String none, String highContrast, String colorBlind, String combined) #TablerDarkModeToggleSettingsSets the accessibility tooltips (default, high-contrast, color-blind, combined).
Parameters
- none System.String
- highContrast System.String
- colorBlind System.String
- combined System.String
public TablerDarkModeToggleSettings Method(TablerDarkModeMethod method) #TablerDarkModeToggleSettingsSets the theme switching method.
Parameters
- method HtmlForgeX.TablerDarkModeMethod
public TablerDarkModeToggleSettings ShowAccessibility(Boolean show = true) #TablerDarkModeToggleSettingsShows the accessibility toggle icons (high-contrast, color-blind).
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings ShowAccessibilityColorBlind(Boolean show = true) #TablerDarkModeToggleSettingsShows the "Color-blind safe" accessibility option.
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings ShowAccessibilityCombined(Boolean show = true) #TablerDarkModeToggleSettingsShows the combined accessibility option (high-contrast + color-blind).
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings ShowAccessibilityDefault(Boolean show = true) #TablerDarkModeToggleSettingsShows the "Default" accessibility option.
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings ShowAccessibilityHighContrast(Boolean show = true) #TablerDarkModeToggleSettingsShows the "High contrast" accessibility option.
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings ShowAuto(Boolean show = true) #TablerDarkModeToggleSettingsShows an "auto/system" theme option.
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings ShowDarkBlack(Boolean show = true, String tooltip = null) #TablerDarkModeToggleSettingsAdds a darker ("blackish") dark variant option (theme token: dark-black).
Parameters
- show System.Boolean = true
- tooltip System.String = null
public TablerDarkModeToggleSettings ShowDarkCarbon(Boolean show = true, String tooltip = null) #TablerDarkModeToggleSettingsAdds a "carbon" dark variant option (theme token: dark-carbon).
Parameters
- show System.Boolean = true
- tooltip System.String = null
public TablerDarkModeToggleSettings ShowOnMobile(Boolean show = true) #TablerDarkModeToggleSettingsShows the toggle on mobile layouts.
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings ShowTooltip(Boolean show = true) #TablerDarkModeToggleSettingsShows or hides tooltips.
Parameters
- show System.Boolean = true
public TablerDarkModeToggleSettings StorageKey(String key) #TablerDarkModeToggleSettingsSets the localStorage key for theme persistence.
Parameters
- key System.String
public TablerDarkModeToggleSettings ThemeTooltips(String darkModeText, String lightModeText) #TablerDarkModeToggleSettingsSets the dark and light tooltip text.
Parameters
- darkModeText System.String
- lightModeText System.String
public TablerDarkModeToggleSettings ThemeTooltips(String darkModeText, String lightModeText, String autoModeText) #TablerDarkModeToggleSettingsSets the dark, light, and auto tooltip text.
Parameters
- darkModeText System.String
- lightModeText System.String
- autoModeText System.String