diff --git a/docs/guides/integration_with_angular.md b/docs/guides/integration_with_angular.md index 4c1dda6..30d7f5a 100644 --- a/docs/guides/integration_with_angular.md +++ b/docs/guides/integration_with_angular.md @@ -186,7 +186,7 @@ Open the **event-calendar.component.ts** file and complete the `ngOnInit()` meth ngOnInit() { const calendar = new EventCalendar(this.container.nativeElement,{ /*...*/ }); - calendar.events.on("add-event", (obj) => { + calendar.api.on("add-event", (obj) => { console.log(obj); }); } diff --git a/docs/guides/integration_with_react.md b/docs/guides/integration_with_react.md index eb112e6..5b0613e 100644 --- a/docs/guides/integration_with_react.md +++ b/docs/guides/integration_with_react.md @@ -231,7 +231,7 @@ Open **EventCalendar.jsx** and complete the `useEffect()` method in the followin useEffect(() => { const calendar = new EventCalendar(container.current, {}); - calendar.events.on("add-event", (obj) => { + calendar.api.on("add-event", (obj) => { console.log(obj); }); diff --git a/docs/guides/integration_with_svelte.md b/docs/guides/integration_with_svelte.md index f0c77aa..57986b5 100644 --- a/docs/guides/integration_with_svelte.md +++ b/docs/guides/integration_with_svelte.md @@ -216,7 +216,7 @@ Open ***EventCalendar.svelte*** and complete the `onMount()` method as in: ~~~jsx title="EventCalendar.svelte" onMount(() => { const calendar = new EventCalendar(container, { columns, cards }); - calendar.events.on("add-event", (obj) => { + calendar.api.on("add-event", (obj) => { console.log(obj); }); }); diff --git a/docs/guides/integration_with_vue.md b/docs/guides/integration_with_vue.md index 61de9d7..0cbb0cd 100644 --- a/docs/guides/integration_with_vue.md +++ b/docs/guides/integration_with_vue.md @@ -245,7 +245,7 @@ Open ***EventCalendarComponent.vue*** and complete the `mounted()` method: // ... mounted() { this.calendar = new EventCalendar(this.$refs.cont, {}); - this.calendar.events.on("add-event", (obj) => { + this.calendar.api.on("add-event", (obj) => { console.log(obj); }); }