This is the base structure for an iCalendar vobject.
name
of the property. Ex:CALSCALE
,ORGANIZER
,ATTENDEE
value
of the property. Ex:mailto:jeremy@sunrise.im
parameters
additional parameters listed after thename
and before thevalue
. Ex:CN=Joey Dong
,ROLE=REQ-PARTICIPANT
,CUTYPE=INDIVIDUAL
Usage:
var property = vobject.property('CALSCALE', 'GREGORIAN');
property.toICS(); // CALSCALE:GREGORIAN
var property = vobject.property('ATTENDEE', 'mailto:joey@sunrise.am');
property.setParameter('CUTYPE', 'INDIVIDUAL');
property.toICS(); // ATTENDEE;CUTYPE=INDIVIDUAL:mailto:joeydong@whitepixel.us
Examples:
CALSCALE:GREGORIAN
ORGANIZER;CN=jeremy@sunrise.im:mailto:jeremy@sunrise.im
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Joey Dong;X-NUM
name
of the parameter. Ex:CUTYPE
,ROLE
,PARTSTAT
value
to set for the parametername
. Ex:INDIVIDUAL
,REQ-PARTICIPANT
,NEEDS-ACTION
name
of the parameter. Ex:CUTYPE
,ROLE
,PARTSTAT
- returns
value
of the parameter set withname
,undefined
by default
value
to set for the property. Ex:mailto:jeremy@sunrise.im
- returns the value set for the property,
undefined
by default
ics
string to be parsed. Ex:ATTENDEE;CUTYPE=INDIVIDUAL:mailto:joeydong@whitepixel.us
- returns rendered iCalendar string representation of the property,
''
by default