How to use the fullcalendar.EventSource.parse 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
static parse(rawInput, calendar) {
    let rawProps

    if (typeof rawInput === 'object') { // long form. might fail in applyManualStandardProps
      rawProps = rawInput
    } else if (typeof rawInput === 'string') { // short form
      rawProps = { url: rawInput } // url will be parsed with parseGoogleCalendarId
    }

    if (rawProps) {
      return EventSource.parse.call(this, rawProps, calendar)
    }

    return false
  }