HtmlForgeX

API Reference

Class

TablerDarkModeToggleSettings

Namespace HtmlForgeX
Assembly HtmlForgeX

Settings sub-builder for TablerDarkModeToggle.

Inheritance

  • Object
  • TablerDarkModeToggleSettings

Methods

public TablerDarkModeToggleSettings AccessibilityStorageKey(String key) #
Returns: TablerDarkModeToggleSettings

Sets the localStorage key for accessibility persistence.

Parameters

key System.String requiredposition: 0
public TablerDarkModeToggleSettings AccessibilityTooltips(String none, String highContrast, String colorBlind, String combined) #
Returns: TablerDarkModeToggleSettings

Sets the accessibility tooltips (default, high-contrast, color-blind, combined).

Parameters

none System.String requiredposition: 0
highContrast System.String requiredposition: 1
colorBlind System.String requiredposition: 2
combined System.String requiredposition: 3
public TablerDarkModeToggle End() #
Returns: TablerDarkModeToggle

Returns the root component.

public TablerDarkModeToggleSettings Method(TablerDarkModeMethod method) #
Returns: TablerDarkModeToggleSettings

Sets the theme switching method.

Parameters

method HtmlForgeX.TablerDarkModeMethod requiredposition: 0
public TablerDarkModeToggleSettings ShowAccessibility(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows the accessibility toggle icons (high-contrast, color-blind).

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings ShowAccessibilityColorBlind(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows the "Color-blind safe" accessibility option.

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings ShowAccessibilityCombined(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows the combined accessibility option (high-contrast + color-blind).

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings ShowAccessibilityDefault(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows the "Default" accessibility option.

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings ShowAccessibilityHighContrast(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows the "High contrast" accessibility option.

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings ShowAuto(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows an "auto/system" theme option.

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings ShowDarkBlack(Boolean show = true, String tooltip = null) #
Returns: TablerDarkModeToggleSettings

Adds a darker ("blackish") dark variant option (theme token: dark-black).

Parameters

show System.Boolean = true optionalposition: 0
tooltip System.String = null optionalposition: 1
public TablerDarkModeToggleSettings ShowDarkCarbon(Boolean show = true, String tooltip = null) #
Returns: TablerDarkModeToggleSettings

Adds a "carbon" dark variant option (theme token: dark-carbon).

Parameters

show System.Boolean = true optionalposition: 0
tooltip System.String = null optionalposition: 1
public TablerDarkModeToggleSettings ShowOnMobile(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows the toggle on mobile layouts.

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings ShowTooltip(Boolean show = true) #
Returns: TablerDarkModeToggleSettings

Shows or hides tooltips.

Parameters

show System.Boolean = true optionalposition: 0
public TablerDarkModeToggleSettings StorageKey(String key) #
Returns: TablerDarkModeToggleSettings

Sets the localStorage key for theme persistence.

Parameters

key System.String requiredposition: 0
ThemeTooltips 2 overloads
public TablerDarkModeToggleSettings ThemeTooltips(String darkModeText, String lightModeText) #
Returns: TablerDarkModeToggleSettings

Sets the dark and light tooltip text.

Parameters

darkModeText System.String requiredposition: 0
lightModeText System.String requiredposition: 1
public TablerDarkModeToggleSettings ThemeTooltips(String darkModeText, String lightModeText, String autoModeText) #
Returns: TablerDarkModeToggleSettings

Sets the dark, light, and auto tooltip text.

Parameters

darkModeText System.String requiredposition: 0
lightModeText System.String requiredposition: 1
autoModeText System.String requiredposition: 2