Members

(static) components :Object

Holds the design set for known top-level components

Type:
  • Object
Properties
NameTypeDescription
vcardmodule:ICAL~ICAL.design.designSet

vCard VCARD

veventmodule:ICAL~ICAL.design.designSet

iCalendar VEVENT

vtodomodule:ICAL~ICAL.design.designSet

iCalendar VTODO

vjournalmodule:ICAL~ICAL.design.designSet

iCalendar VJOURNAL

valarmmodule:ICAL~ICAL.design.designSet

iCalendar VALARM

vtimezonemodule:ICAL~ICAL.design.designSet

iCalendar VTIMEZONE

daylightmodule:ICAL~ICAL.design.designSet

iCalendar DAYLIGHT

standardmodule:ICAL~ICAL.design.designSet

iCalendar STANDARD

Example
let propertyName = 'fn';
let componentDesign = ICAL.design.components.vcard;
let propertyDetails = componentDesign.property[propertyName];
if (propertyDetails.defaultType == 'text') {
  // Yep, sure is...
}

(static) defaultSet :module:ICAL~ICAL.design.designSet

The default set for new properties and components if none is specified.

Type:
  • module:ICAL~ICAL.design.designSet

(static) defaultType :String

The default type for unknown properties

Type:
  • String

(static) icalendar :module:ICAL~ICAL.design.designSet

The design set for iCalendar (rfc5545/rfc7265) components.

Type:
  • module:ICAL~ICAL.design.designSet

(static) strict

Can be set to false to make the parser more lenient.

(static) vcard :module:ICAL~ICAL.design.designSet

The design set for vCard (rfc6350/rfc7095) components.

Type:
  • module:ICAL~ICAL.design.designSet

(static) vcard3 :module:ICAL~ICAL.design.designSet

The design set for vCard (rfc2425/rfc2426/rfc7095) components.

Type:
  • module:ICAL~ICAL.design.designSet

(inner) icalSet :module:ICAL~ICAL.design.designSet

iCalendar design set

Type:
  • module:ICAL~ICAL.design.designSet

(inner) vcard3Set :module:ICAL~ICAL.design.designSet

vCard 3.0 design set

Type:
  • module:ICAL~ICAL.design.designSet

(inner) vcardSet :module:ICAL~ICAL.design.designSet

vCard 4.0 design set

Type:
  • module:ICAL~ICAL.design.designSet

Methods

(static) getDesignSet(componentName) → {module:ICAL~ICAL.design.designSet}

Gets the design set for the given component name.

Parameters:
NameTypeDescription
componentNameString

The name of the component

Returns:

The design set for the component

Type: 
module:ICAL~ICAL.design.designSet

The design data, used by the parser to determine types for properties and other metadata needed to produce correct jCard/jCal data.

Members

(static) components :Object

Holds the design set for known top-level components

Type:
  • Object
Properties
NameTypeDescription
vcardmodule:ICAL~ICAL.design.designSet

vCard VCARD

veventmodule:ICAL~ICAL.design.designSet

iCalendar VEVENT

vtodomodule:ICAL~ICAL.design.designSet

iCalendar VTODO

vjournalmodule:ICAL~ICAL.design.designSet

iCalendar VJOURNAL

valarmmodule:ICAL~ICAL.design.designSet

iCalendar VALARM

vtimezonemodule:ICAL~ICAL.design.designSet

iCalendar VTIMEZONE

daylightmodule:ICAL~ICAL.design.designSet

iCalendar DAYLIGHT

standardmodule:ICAL~ICAL.design.designSet

iCalendar STANDARD

Example
let propertyName = 'fn';
let componentDesign = ICAL.design.components.vcard;
let propertyDetails = componentDesign.property[propertyName];
if (propertyDetails.defaultType == 'text') {
  // Yep, sure is...
}

(static) defaultSet :module:ICAL~ICAL.design.designSet

The default set for new properties and components if none is specified.

Type:
  • module:ICAL~ICAL.design.designSet

(static) defaultType :String

The default type for unknown properties

Type:
  • String

(static) icalendar :module:ICAL~ICAL.design.designSet

The design set for iCalendar (rfc5545/rfc7265) components.

Type:
  • module:ICAL~ICAL.design.designSet

(static) strict

Can be set to false to make the parser more lenient.

(static) vcard :module:ICAL~ICAL.design.designSet

The design set for vCard (rfc6350/rfc7095) components.

Type:
  • module:ICAL~ICAL.design.designSet

(static) vcard3 :module:ICAL~ICAL.design.designSet

The design set for vCard (rfc2425/rfc2426/rfc7095) components.

Type:
  • module:ICAL~ICAL.design.designSet

(inner) icalSet :module:ICAL~ICAL.design.designSet

iCalendar design set

Type:
  • module:ICAL~ICAL.design.designSet

(inner) vcard3Set :module:ICAL~ICAL.design.designSet

vCard 3.0 design set

Type:
  • module:ICAL~ICAL.design.designSet

(inner) vcardSet :module:ICAL~ICAL.design.designSet

vCard 4.0 design set

Type:
  • module:ICAL~ICAL.design.designSet

Methods

(static) getDesignSet(componentName) → {module:ICAL~ICAL.design.designSet}

Gets the design set for the given component name.

Parameters:
NameTypeDescription
componentNameString

The name of the component

Returns:

The design set for the component

Type: 
module:ICAL~ICAL.design.designSet