Wijmo UI for the Web
addCalendar Method
Calendar object. Calendar object fields: id - String, unique calendar id, this field generated automatically; name - String, calendar name; location - String, location field; description - String, calendar description; color - String, calendar color; tag - String, this field can be used to store custom information.
Function that will be called when calendar is added.
Function that will be called when calendar can not be added.(e.g. due to data source or memory problems).
Adds a new calendar.
Syntax
Javascript (Usage) 
var instance = new jQuery.wijmo.wijevcal();
var value; // Type: bool

// Parameters
var o; // Type:  object
var successCallback; // Type:  any
var errorCallback; // Type:  any

value = instance.addCalendar(o, successCallback, errorCallback);
Javascript (Specification) 
function addCalendar( 
   o : object,
   successCallback : any,
   errorCallback : any
) : bool;

Parameters

o
Calendar object. Calendar object fields: id - String, unique calendar id, this field generated automatically; name - String, calendar name; location - String, location field; description - String, calendar description; color - String, calendar color; tag - String, this field can be used to store custom information.
successCallback
Function that will be called when calendar is added.
errorCallback
Function that will be called when calendar can not be added.(e.g. due to data source or memory problems).
Example
$("#wijevcal").wijevcal("addCalendar", { 
    name: "My calendar", 
    location: "Home", 
    description: "Some description",
    color: "lime" 
});
Browser Compatibility
7
5
5

See Also

Reference

wijevcal type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.