HtmlForgeX

API Reference

Class

TablerCookieBanner

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Modifiers sealed

Tabler-style cookie banner implemented as a Bootstrap offcanvas (bottom). HtmlForgeX handles auto-show and persistence via HfxCookieBanner.

Inheritance

Constructors

public TablerCookieBanner() #

Methods

public TablerCookieBanner AllowAllButton(String text) #
Returns: TablerCookieBanner

Sets the "allow all" button label.

Parameters

text System.String requiredposition: 0
public TablerCookieBanner EssentialButton(String text) #
Returns: TablerCookieBanner

Sets the "essential only" button label.

Parameters

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

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

Parameters

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

Sets the main message text.

Parameters

text System.String requiredposition: 0
RegisterLibraries() #
public TablerCookieBanner Settings(Action<CookieBannerSettings> configure) #
Returns: TablerCookieBanner

Groups less-common options under a single fluent entry point to keep IntelliSense lean.

Parameters

configure System.Action{HtmlForgeX.CookieBannerSettings} requiredposition: 0
public TablerCookieBanner Title(String text) #
Returns: TablerCookieBanner

Sets the bold title prefix.

Parameters

text System.String requiredposition: 0
public override String ToString() #
Returns: String