wijmo.tabs.wijtabs Namespace > options type : cookie Option |
Default value: null
Stores the latest selected tab in a cookie. The cookie is then used to determine the initially selected tab if the selected option is not defined. This option requires a cookie plugin. The object needs to have key/value pairs of the form the cookie plugin expects as options.
Javascript (Usage) | |
---|---|
$(function () { // Get value var returnsValue; // Type: object returnsValue = $(".selector").wijtabs("option", "cookie"); // Set value var newValue; // Type: object $(".selector").wijtabs("option", "cookie", newValue); }); |
Javascript (Specification) | |
---|---|
|
//Set cookie to wijtabs. $('.selector').wijtabs({cookie: { expires: 7, path: '/', domain: 'jquery.com', secure: true }});