From 101e7c9875c1f539a6af31291e64a753e7e411f1 Mon Sep 17 00:00:00 2001 From: Serhii Pylypchuk Date: Mon, 10 Jun 2024 12:45:16 +0400 Subject: [PATCH] [update] minor fix after review --- docs/guides/integration_with_angular.md | 2 +- docs/guides/integration_with_react.md | 2 +- docs/guides/integration_with_svelte.md | 2 +- docs/guides/integration_with_vue.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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); }); }