How to use the fullcalendar.EventSource.prototype function in fullcalendar

To help you get started, we’ve selected a few fullcalendar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fullcalendar / fullcalendar / plugins / gcal / GcalEventSource.ts View on Github external
applyManualStandardProps(rawProps) {
    let superSuccess = EventSource.prototype.applyManualStandardProps.apply(this, arguments)
    let googleCalendarId = rawProps.googleCalendarId

    if (googleCalendarId == null && rawProps.url) {
      googleCalendarId = parseGoogleCalendarId(rawProps.url)
    }

    if (googleCalendarId != null) {
      this.googleCalendarId = googleCalendarId

      return superSuccess
    }

    return false
  }