Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Forked from kewisch/ical_buider.js
Created September 18, 2012 17:17
Show Gist options
  • Save lightsofapollo/3744402 to your computer and use it in GitHub Desktop.
Save lightsofapollo/3744402 to your computer and use it in GitHub Desktop.
// Post parser
// COMPONENT OR STRING
//SAX?
var builder = ICAL.Builder({ /* options */ });
builder.onitem = function() {
};
builder.onrecurrenceexception = function() {
// we might need this kind of function, so the code knows when the item has been modified.
// If not set, then either onitem could be fired more than once, maybe configurable in the options.
}
builder.oncomplete = function() {
};
builder.process(vcalendar);
// Some event
var component;
var event = new ICAL.Event(component);
// I'd say event.startDate, as DTSTART is very "technical"
event.DTSTART?
event.start?
event.endDate?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment