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

fullcalendar re-render #83

Open
kwatog opened this issue Mar 15, 2019 · 1 comment
Open

fullcalendar re-render #83

kwatog opened this issue Mar 15, 2019 · 1 comment

Comments

@kwatog
Copy link

kwatog commented Mar 15, 2019

I just upgraded the v2.2 with the new jquery-less fullcalendar. I need to refresh the calendar after an ajax call. anybody know how to to do it?

this.$refs.calendar.render()

does not work

@ghost
Copy link

ghost commented Mar 25, 2019

I have been working lately with full-calendar too and I have faced the same problem. I have not used the jquery version of the library though, but it seems that what was previously done through that is now done through the instance of the calendar:

const calendar = new Calendar(this.$refs['calendar'], {})

In order to save the reference I simply made a data entry and save it in there:

data: {
    $calendar: undefined
}

this.$calendar = calendar

After this you can do: this.$calendar.render() just like you were trying to

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

1 participant