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

Multiple event sources #170

Open
akuljana opened this issue Mar 19, 2018 · 1 comment
Open

Multiple event sources #170

akuljana opened this issue Mar 19, 2018 · 1 comment

Comments

@akuljana
Copy link

Is there any way to add multiple calendars/event sources? I have two different event types and they can overlap. I would like to have them in different colors as well. I'm using week view only, and they would show as two different columns in one day.

@twinssbc
Copy link
Owner

@akuljana Yes, it's possible. You still need to merge the two event sources into a single array and pass it to the calendar. But you could generate different css class based on a field of your event, then set different color for each css class. You could take a look at weekviewNormalEventTemplateUrl option in README. It allows you to custom the event view in weekview, you could add some ng-class logic inside your own template.

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

2 participants