This is the base structure for an iCalendar vobject.
name
of the property. Ex:CALSCALE
,ORGANIZER
,ATTENDEE
value
of the property. Ex:mailto:[email protected]
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:[email protected]');
property.setParameter('CUTYPE', 'INDIVIDUAL');
property.toICS(); // ATTENDEE;CUTYPE=INDIVIDUAL:mailto:[email protected]
Examples:
CALSCALE:GREGORIAN
ORGANIZER;[email protected]:mailto:[email protected]
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:[email protected]
- returns the value set for the property,
undefined
by default
ics
string to be parsed. Ex:ATTENDEE;CUTYPE=INDIVIDUAL:mailto:[email protected]
- returns rendered iCalendar string representation of the property,
''
by default