Options
All
  • Public
  • Public/Protected
  • All
Menu

Event

Event object represent individual calendar events. For usage examples, see Calendar object documentation.

Hierarchy

  • Event

Index

Properties

alarms

alarms: Alarm[]

The alarms assigned to the event, if any.

calendar

calendar: Calendar

The calendar which this event resides in.

creationDate

creationDate: Date

Original creation date of the event.

endDate

endDate: Date

End date of the event.

hasAlarms

hasAlarms: boolean

Returns true if the event has any alarms.

isAllDay

isAllDay: boolean

Flag for all day events.

lastError

lastError: string | undefined

If a function fails, this property will contain the last error as a string message, otherwise it will be undefined.

lastModifiedDate

lastModifiedDate: Date

Last change to the event.

location

location: string

Location of the event.

notes

notes: string

Notes associated with the event.

startDate

startDate: Date

Start date of the event.

title

title: string

The title of the event.

Methods

addAlarm

  • addAlarm(alarm: Alarm): void
  • Add an alarm object to the event. Be sure to update() to save after adding alarms.

    Parameters

    Returns void

edit

  • edit(): boolean
  • Open the event in the system event editing card. The user will be able to modify/edit the event values and add to a calendar from this view. Returns true if the event was saved, false if the user canceled or deleted the event.

    Returns boolean

removeAllAlarms

  • removeAllAlarms(): void
  • Remove any assigned alarms from the event.

    Returns void

update

  • update(): boolean
  • Save the event. Returns true if the event is successfully saved in Calendars.

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc