question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple calendars on the same page

See original GitHub issue

I have two calendars on one page and my task is to show the Save All button above each one of them when calendar events are dragged inside. I’ve made component having Save All button with *ngIf condition and <ng-fullcalendar> with (eventDrop)="onEventDropOrResize($event)".

Dropping the calendar event in the second calendar triggers the onEventDropOrResize() method in the first component and the Save All button shows always in the first component. While debugging, $event.srcElement and $event.target are both pointing to the first <ng-fullcalendar> DOM element. I’ve tried with other events, i.e. eventClick() and the event always triggers the first component’s listener method.

Is there a quick workaround for this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mitjaroglcommented, Oct 25, 2018

@Jamaks How can I initialise two instances of calendar on same page? I cannot find from documentation. Currently by default if I try to add two calendars they all have same Id.

1reaction
kombadzombacommented, May 31, 2018

I guess you’ll have to add jQueryUI into ng2 project or maybe try some other ng2 draggable package first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

View multiple calendars at the same time - Microsoft Support
View multiple calendars at the same time ; Open a calendar in a new window · Click Open in New Window. ; Overlay...
Read more >
How to view multiple calendars at the same time in Outlook
These are shortcuts: Click the left arrow on the calendar to the right in side-by-side view to overlay the two calendars. With the...
Read more >
Outlook: view multiple calendars side by side or in overlay mode
It is quite easy to view multiple calendars side by side in Microsoft Outlook. Step 1: Firstly, please shift to the Calendar view...
Read more >
Multiple Calendars on the same page - WordPress.org
You can create pages with each one containing a different calendar of events using shortcodes, but this feature is only available on the...
Read more >
Set multiple calendar view with Overlay feature in Outlook
View multiple calendars at the same time.You can see multiple calendars at the same time side-by-side or combined into a stacked overlay ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found