This documentation relates to an earlier version of Atlassian Gadgets.

Unknown macro: {spacejump}

or visit the current documentation home.

Skip to end of metadata
Go to start of metadata

This page is part of the Gadget Developers' JavaScript Cookbook.

How do I use cookies in my gadget?

Use the gadget object API for createCookie, readCookie and eraseCookie:

view: {
  template: function(args) {
    var gadget = this;
    gadget.createCookie("columnOrder", "assignee", 30);

    var columnOrder = gadget.readCookie("columnOrder");



Gadget Developers' JavaScript Cookbook
Using the Atlassian Gadgets JavaScript Framework

  • No labels