put

puts data into the storage

void put(string name,object value, [string domain,Date expires] );
namestringthe data key
valueobjecta data item that should be associated with the specified data key
domainstringoptional, the cookie domain
expiresDateoptional, the cookie expiring time

Example

webix.storage.cookie.put("weather", {
    temperature:23, rain:false
}, "site.com", new Date(2018, 11, 31));

Back to top