Origami Frontend Components & Services

JSDoc: o-cookies

o-cookies is not maintained by the Origami team. This means that the Origami team will not necessarily be able to help you with support requests. The people who maintain this component may be able to offer support, but it's not guaranteed.

o-cookies has a support status of "dead". This means that there are no plans to fix any issues with this component, and it may stop working at any point. More information on the status of this component is available in the README. If you still rely on this component or have concerns, please contact the Origami team.

getParam(name, param)

Global Function

Get a parameter from a named cookie

parameter type default description
name string The cookie's name
param string The parameter's name

Returns

  • string | undefined

Links

setParam(...)

Global Function

Set a particular parameter in a cookie, without changing the other parameters

parameter type default description
name string The cookie's name
param string The parameter's name
value string The parameter's value

Links

Status
dead Origami v1 (Bower)
Switch component view

GitHub: o-cookies

Install o-cookies

If using the Build Service, add o-cookies@^1.1.2 to your script tag.

If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-cookies@^1.1.2".

Help & Support

o-cookies is not supported directly by the Origami team. We make no guarantees, but will help if we can. First try contacting its maintainers at:


Email: rhys.evans@ft.com