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