ui-calendar icon indicating copy to clipboard operation
ui-calendar copied to clipboard

Is it possible to have the calendar go back to the current month, without pressing the arrow button?

Open Hiroki111 opened this issue 9 years ago • 1 comments

Let me illustrate the situation.

  1. The user goes back to the previous month by clicking the left arrow button.
  2. The user clicks one of the events in the calendar, which now displays the events in the previous month.
  3. $scope.alertDayOnClick is run

At this point of time, the calendar still displays events in the previous month. Is it possible to have the calendar go back to the current month, without pressing the arrow?

Any advice will be appreciated!

Hiroki111 avatar Nov 18 '16 08:11 Hiroki111

You can use uiCalendarConfig.calendars[calendar].fullCalendar('gotoDate',date); calendar being your calendar and date the Date object you want to display

tomfrit avatar Nov 23 '16 10:11 tomfrit