In `$ scope.eventSource` the property` className` is not added - problem

I use the directive AngularJSfor Arshaw FullCalendar. The problem is that classNamein is $scope.eventSourcenot displayed on event object, my code is:

$scope.eventSource = {
    url: "/unavailability/getCalData?userId=" + CurrentUser.user().id,// add source of working api
    className: 'performer-unavailability', // an option! -> Not Working
    currentTimezone: 'America/Chicago' // an option!
};

But when I send classNamefrom the backend in an array of events, it works fine, classNameattaches to the event. I do not want to parse many arrays in the backend, to add className, please offer any solution.

+4
source share
1 answer
-1

Source: https://habr.com/ru/post/1621948/


All Articles