Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot add an event #60

Open
vinitsky opened this issue Sep 24, 2021 · 1 comment
Open

cannot add an event #60

vinitsky opened this issue Sep 24, 2021 · 1 comment

Comments

@vinitsky
Copy link

receive error TypeError: _[i].evoCalendar is undefined evo-calendar.js:1111:17

$('#calendar').evoCalendar('addCalendarEvent', {
      id: 'shiur1',
      name: 'Shiur: The Greeks are Coming',
      date: 'September 27, 2021',
      type: 'shiur',
      everyYear: false 
} )
@DEV-XiA
Copy link

DEV-XiA commented Sep 20, 2022

You should initializing evoCalendar first, then use the method, like this:

$('#calendar').evoCalendar()
$('#calendar').evoCalendar('addCalendarEvent', {
id: 'shiur1',
name: 'Shiur: The Greeks are Coming',
date: 'September 27, 2021',
type: 'shiur',
everyYear: false
} )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants