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

Custom multiple eventSource #67

Open
BarraudLilian opened this issue May 31, 2018 · 0 comments
Open

Custom multiple eventSource #67

BarraudLilian opened this issue May 31, 2018 · 0 comments

Comments

@BarraudLilian
Copy link

In this part we put the URL that calls the controller:

eventSources: [
            {
                url: Routing.generate("fullcalendar_loader"),
                type: 'POST',
                // A way to add custom filters to your event listeners
                data: {
                },
                error: function() {
                   //alert('There was an error while fetching Google Calendar!');
                }
            }
        ],

What i'd need is to have several a loader depending on the user_id.
Of course the controller behaves differently according to the user.

As this option in set in the JS that rules the fullCalendar, how would i be able to have, for example
url: Routing.generate("route1") if user_1 is logged in and
url: Routing.generate("route2") if user_2 is logged in?

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

1 participant