Skip to content

Commit

Permalink
[update] minor fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiipylypchuk1991 committed Jun 10, 2024
1 parent 39c5ce3 commit 101e7c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/guides/integration_with_angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/integration_with_react.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/integration_with_svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/integration_with_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit 101e7c9

Please sign in to comment.