Wijmo UI for the Web
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.

Syntax
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) 
var cookie : object;
Example
//Set cookie to wijtabs.
$('.selector').wijtabs({cookie: { 
expires: 7, path: '/', domain: 'jquery.com', secure: true }});
Browser Compatibility
7
5
5

See Also

Reference

options type
wijtabs jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.