API Reference
Class
CookieBannerSettings
Settings sub-builder for TablerCookieBanner.
Inheritance
- Object
- CookieBannerSettings
Methods
public CookieBannerSettings AllowAllButton(String text) #Returns:
CookieBannerSettingsSets the "allow all" button label.
Parameters
- text System.String
public CookieBannerSettings AutoShow(Boolean enable = true) #Returns:
CookieBannerSettingsControls whether the banner should auto-show when consent is missing.
Parameters
- enable System.Boolean = true
public CookieBannerSettings Backdrop(Boolean enable = true) #Returns:
CookieBannerSettingsControls Bootstrap offcanvas backdrop (default: false).
Parameters
- enable System.Boolean = true
public TablerCookieBanner End() #Returns:
TablerCookieBannerReturns control to the root banner builder.
public CookieBannerSettings EssentialButton(String text) #Returns:
CookieBannerSettingsSets the "essential only" button label.
Parameters
- text System.String
public CookieBannerSettings LearnMore(String href, String text = "Learn more") #Returns:
CookieBannerSettingsSets an optional learn-more link appended to the message.
Parameters
- href System.String
- text System.String = "Learn more"
public CookieBannerSettings Message(String text) #Returns:
CookieBannerSettingsSets the main banner message.
Parameters
- text System.String
public CookieBannerSettings Scroll(Boolean enable = true) #Returns:
CookieBannerSettingsControls Bootstrap offcanvas scroll behavior (default: true).
Parameters
- enable System.Boolean = true
public CookieBannerSettings StorageKey(String key) #Returns:
CookieBannerSettingsSets the localStorage key used to persist consent.
Parameters
- key System.String
public CookieBannerSettings Title(String text) #Returns:
CookieBannerSettingsConvenience wrappers for common root methods.
Parameters
- text System.String
public CookieBannerSettings Values(String essentialValue, String allowAllValue) #Returns:
CookieBannerSettingsSets values stored in localStorage for "essential" and "allow all". Defaults: "essential" / "all".
Parameters
- essentialValue System.String
- allowAllValue System.String