Hierarchy

  • VCard

Constructors

Properties

add: ((key: string, value: any) => VCard)

Type declaration

    • (key: string, value: any): VCard
    • A generic function for adding additional VCard elements

      Returns

      VCard for chaining function calls

      Parameters

      • key: string

        The VCard's value identifier

      • value: any

        The value itself

      Returns VCard

addBirthday: ((value: Date) => VCard)

Type declaration

    • (value: Date): VCard
    • The VCard's bday object

      Returns

      VCard for chaining function calls

      Parameters

      • value: Date

      Returns VCard

addCode: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's adr code object e.g. the postal code

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addCountry: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's adr country object e.g. the country name

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addEmail: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's email object

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addFirstname: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's surname object

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addFullName: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's fn object

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addGender: ((value: Gender) => VCard)

Type declaration

    • (value: Gender): VCard
    • The VCard's gender/sex object

      Returns

      VCard for chaining function calls

      Parameters

      Returns VCard

addGenderIdentity: ((value: string) => VCard)

Type declaration

addLastname: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's given object

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addLocality: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's adr locality object e.g. city

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addNamePrefix: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's prefix object

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addNameSuffix: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's suffix object

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addNote: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's note object e.g. any arbitrary additional information Can also be a JSON or XML encoded string for passing structured data

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addRegion: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's adr region object e.g. state or province

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addStreet: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's adr street object e.g. the street address

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

addTelephone: ((value: string) => VCard)

Type declaration

    • (value: string): VCard
    • The VCard's tel object

      Returns

      VCard for chaining function calls

      Parameters

      • value: string

      Returns VCard

combine: ((other: VCard) => void)

Type declaration

    • (other: VCard): void
    • Parameters

      Returns void

equals: ((vCard: VCard) => boolean)

Type declaration

    • (vCard: VCard): boolean
    • Parameters

      Returns boolean

get: ((key: string) => any)

Type declaration

    • (key: string): any
    • A generic function for retrieving a VCard element's value

      Returns

      The VCard element's value, or undefined, if not found

      Parameters

      • key: string

        The VCard value's key

      Returns any

toXML: ((namespacePrefix?: string) => XMLDocument)

Type declaration

toXMLString: ((namespacePrefix?: string) => string)

Type declaration

    • (namespacePrefix?: string): string
    • Parameters

      • Optional namespacePrefix: string

      Returns string

fromXML: ((xml: string) => VCard)

Type declaration

    • (xml: string): VCard
    • Parameters

      • xml: string

      Returns VCard

Accessors

  • get birthday(): undefined | Date
  • Returns undefined | Date

  • get code(): undefined | string
  • Returns undefined | string

  • get country(): undefined | string
  • Returns undefined | string

  • get email(): undefined | string
  • Returns undefined | string

  • get firstname(): undefined | string
  • Returns undefined | string

  • get fullName(): undefined | string
  • Returns undefined | string

  • get gender(): undefined | Gender
  • Returns undefined | Gender

  • get genderIdentity(): undefined | string
  • Returns undefined | string

  • get items(): KeyValue[]
  • Returns KeyValue[]

  • get lastname(): undefined | string
  • Returns undefined | string

  • get locality(): undefined | string
  • Returns undefined | string

  • get namePrefix(): undefined | string
  • Returns undefined | string

  • get nameSuffix(): undefined | string
  • Returns undefined | string

  • get note(): undefined | string
  • Returns undefined | string

  • get region(): undefined | string
  • Returns undefined | string

  • get street(): undefined | string
  • Returns undefined | string

  • get telephone(): undefined | string
  • Returns undefined | string

Generated using TypeDoc