Wijmo UI for the Web
addEvent Method
Event object. Event object fields: id - String, unique event id, this field generated automatically; calendar - String, calendar id to which the event belongs; subject - String, event title; location - String, event location; start - Date, start date/time; end - Date, end date/time; description - String, event description; color - String, event color; allday - Boolean, indicates all day event tag - String, this field can be used to store custom information.
Function that will be called when event is added.
Function that will be called when event can not be added.(e.g. due to data source or memory problems).
Adds a new event.
Syntax
Javascript (Usage) 
$(function () {
    var returnsValue; // Type:  bool
    // Parameters
    var o; // Type:  object
    var successCallback; // Type:  any
    var errorCallback; // Type:  any
    
    returnsValue = $(".selector").wijevcal("addEvent", o, successCallback, errorCallback);
});
Javascript (Specification) 
function addEvent( 
   o : object,
   successCallback : any,
   errorCallback : any
) : bool;

Parameters

o
Event object. Event object fields: id - String, unique event id, this field generated automatically; calendar - String, calendar id to which the event belongs; subject - String, event title; location - String, event location; start - Date, start date/time; end - Date, end date/time; description - String, event description; color - String, event color; allday - Boolean, indicates all day event tag - String, this field can be used to store custom information.
successCallback
Function that will be called when event is added.
errorCallback
Function that will be called when event can not be added.(e.g. due to data source or memory problems).
Example
$("#wijevcal").wijevcal("addEvent", { 
    start: new Date(2011, 4, 2, 0, 32), 
    end: new Date(2011, 4, 2, 0, 50), 
    subject: "Subject" });
Browser Compatibility
7
5
5

See Also

Reference

wijevcal type
wijevcal jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.