diff --git a/libs/ngx-cookieconsent/src/lib/service/cookieconsent-config.ts b/libs/ngx-cookieconsent/src/lib/service/cookieconsent-config.ts index 97bf3e9..aba38a1 100644 --- a/libs/ngx-cookieconsent/src/lib/service/cookieconsent-config.ts +++ b/libs/ngx-cookieconsent/src/lib/service/cookieconsent-config.ts @@ -19,7 +19,7 @@ export class NgcCookieConsentConfig { /** * If false, this prevents the popup from showing (useful for giving to control to another piece of code) */ - enabled ?= true; + enabled? = true; /** * Optional (expecting a HTML element) if passed, the popup is appended to this element. default is `document.body` */ @@ -159,6 +159,11 @@ export class NgcCookieConsentConfig { */ autoAttach?: boolean; + /** + * Set value if floating layout should be forced for mobile devices + */ + mobileForceFloat?: boolean; + /** * Simple whitelist for pages. specify page by: * - using a string : '/index.html' (matches '/index.html' exactly) OR @@ -204,7 +209,7 @@ export class NgcCookieConsentConfig { ignoreClicksFrom?: string[]; // these callback hooks are called at certain points in the program execution - + /** * This is called when the popup is opened. It can be used to trigger an animation, or to attach extra handlers, etc. */ @@ -229,7 +234,6 @@ export class NgcCookieConsentConfig { * This is called when the user clicks the `revoke` button. This means that their current choice has been invalidated. */ onRevokeChoice?: () => void; - - onNoCookieLaw?: (countryCode: string, country: string) => void; + onNoCookieLaw?: (countryCode: string, country: string) => void; }