The DayPilotCalendar.Event is now rather an internal object.
I would like to make it more accessible for the future.
Depending on what exactly you need to send back to the server, you can create your own object (that's the beauty of JavaScript). You only need to define the required functions
Here is an example helping object that is defined in Common.js (it's a helper for external drag&drop):
DayPilot.Event = function(id, duration, text) {
this.value = function() { return id};
this.tag = function() { return null };
this.start = function() { return new Date(0) };
this.end = function() { return new Date( duration * 1000 ); };
this.text = function() { return text; };
this.isAllDay = function() { return false; };
};
These are the functions that are called from eventClickCallBack():
- e.value() - string
- e.tag() - see below
- e.start() - Date object with date defined in +0000 time zone
- e.end() - Date object with date defined in +0000 time zone
- e.text() - string
- e.column() - string
- e.isAllDay() - boolean
e.tag() (called without parameters) should return a collection of encodeURIComponent'ed tag values joint using '&' character. The number of values must match the number of columns defined in DataTagFields property. Example:
DataTagFields="first,second"
e.tag = function() {
return encodeURIComponent("firstValue") + "&" + encodeURIComponent("secondValue");
};
I hope this helps a little bit...