It looks like JsDocs for o-cookie-message@6.5.0 are missing or formatted incorrectly.
For component documentation see the readme.
Enables cookie setting behaviour from the FT consent service https://github.com/Financial-Times/next-consent-proxy/tree/master/src
Checks whether cookie is set
Displays cookie message banner, based on existing cookies.
Removes cookie message banner.
Undo theme and event listeners set on init.
Get the data attributes from the cookieMessageElement. If the cookie message is being set up declaratively, this method is used to extract the data attributes from the DOM.
parameter | type | default | description |
---|---|---|---|
cookieMessageElement | HTMLElement | The cookie message element in the DOM |
Initialise cookie message components.
parameter | type | default | description |
---|---|---|---|
rootElement | HTMLElement | string | The root element to intialise cookie messages in, or a CSS selector for the root element | |
options (optional) | object | {} | An options object for configuring the cookie messages |
GitHub: o-cookie-message@6.5.0
If using the Build Service, add o-cookie-message@^6.5.0
to your
script and link tags.
If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-cookie-message@^6.5.0"
.
o-cookie-message is maintained directly by the Origami team. If you have any questions about o-cookie-message or Origami in general, we are happy to help. 😊
Slack: #origami-support
Email: origami.support@ft.com
To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊
Slack: #origami-support
Email: origami.support@ft.com