angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 729 forks source link

Adding navLinks does not have any affect. #485

Open AlphaNerd opened 7 years ago

AlphaNerd commented 7 years ago

I can't seem to get some properties to work, although everything else seems to. Specifically I cannot get the navLinks to work at top of 'agendayWeek' view. Any help would be great, feel like i'm missing something stupid somewhere. I've set 'navLinks: true' in properties.

$scope.uiConfig = { calendar: { timezone: Parse.User.current().attributes.calendarConfig.timezone, scrollTime: new moment().get('hour')+":00:00", minTime: Parse.User.current().attributes.calendarConfig.minTime, maxTime: Parse.User.current().attributes.calendarConfig.maxTime, views: Parse.User.current().attributes.calendarConfig.views, businessHours: Parse.User.current().attributes.calendarConfig.businesshours, weekends: true, hiddenDays: Parse.User.current().attributes.calendarConfig.hiddendays, defaultView: "agendaWeek", nowIndicator: Parse.User.current().attributes.calendarConfig.nowIndicator, height: $scope.dev_height, allDayDefault: false, timezone: 'UTC', editable: true, navLinks: true, eventLimit: true, // for all non-agenda views, lazyFetching: true, dragScroll: true, forceEventDuration: true, longPressDelay: 300, droppable: true, /// external events dropAccept: '.canSchedule', /// external events dragOpacity: 0.25, eventOverlap: false, slotEventOverlap: false, handleWindowResize: true, slotDuration: "00:15:00", slotLabelInterval: "00:15:00", header: { left: 'month,agendaWeek,agendaDay', center: 'title', right: 'prev,today,next' }, eventClick: $scope.alertOnEventClick, dayClick: $scope.dayClick, eventDrop: $scope.alertOnDrop, eventResize: $scope.alertOnResize, eventRender: $scope.eventRender, loading: $scope.loading, eventDataTransform: $scope.eventDataTransform, dayRender: $scope.dayRender, eventRender: $scope.eventRender, eventMouseover: $scope.eventMouseover } }

screen shot 2017-03-04 at 7 40 09 am
rjperri commented 6 years ago

Has there been any progress with this issue? Only workaround I found was to do this dayClick: function(date, jsEvent, view, resource) { if (view.name !== 'month') return; uiCalendarConfig.calendars["calendar"].fullCalendar('changeView', 'agendaDay'); uiCalendarConfig.calendars["calendar"].fullCalendar('gotoDate', date); }

Only works on month view