HtmlForgeX

API Reference

Class

CookieBannerSettings

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Settings sub-builder for TablerCookieBanner.

Inheritance

  • Object
  • CookieBannerSettings

Methods

public CookieBannerSettings AllowAllButton(String text) #
Returns: CookieBannerSettings

Sets the "allow all" button label.

Parameters

text System.String requiredposition: 0
public CookieBannerSettings AutoShow(Boolean enable = true) #
Returns: CookieBannerSettings

Controls whether the banner should auto-show when consent is missing.

Parameters

enable System.Boolean = true optionalposition: 0
public CookieBannerSettings Backdrop(Boolean enable = true) #
Returns: CookieBannerSettings

Controls Bootstrap offcanvas backdrop (default: false).

Parameters

enable System.Boolean = true optionalposition: 0
public TablerCookieBanner End() #
Returns: TablerCookieBanner

Returns control to the root banner builder.

public CookieBannerSettings EssentialButton(String text) #
Returns: CookieBannerSettings

Sets the "essential only" button label.

Parameters

text System.String requiredposition: 0
public CookieBannerSettings LearnMore(String href, String text = "Learn more") #
Returns: CookieBannerSettings

Sets an optional learn-more link appended to the message.

Parameters

href System.String requiredposition: 0
text System.String = "Learn more" optionalposition: 1
public CookieBannerSettings Message(String text) #
Returns: CookieBannerSettings

Sets the main banner message.

Parameters

text System.String requiredposition: 0
public CookieBannerSettings Scroll(Boolean enable = true) #
Returns: CookieBannerSettings

Controls Bootstrap offcanvas scroll behavior (default: true).

Parameters

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

Sets the localStorage key used to persist consent.

Parameters

key System.String requiredposition: 0
public CookieBannerSettings Title(String text) #
Returns: CookieBannerSettings

Convenience wrappers for common root methods.

Parameters

text System.String requiredposition: 0
public CookieBannerSettings Values(String essentialValue, String allowAllValue) #
Returns: CookieBannerSettings

Sets values stored in localStorage for "essential" and "allow all". Defaults: "essential" / "all".

Parameters

essentialValue System.String requiredposition: 0
allowAllValue System.String requiredposition: 1