markup.html 908 B

1234567891011121314151617181920212223
  1. <div ng-controller="ViewChangeClickCtrl as vm">
  2. <h1 class="text-center">{{ vm.viewTitle }}</h1>
  3. <ng-include src="'calendarControls.html'"></ng-include>
  4. <uib-alert type="info">
  5. <div ng-switch="vm.calendarView">
  6. <span ng-switch-when="year">Click on a month label to change the view to that month.</span>
  7. <span ng-switch-when="month">Click on a day label to change the view to that day.</span>
  8. <span ng-switch-when="day">There is no other view to navigate to.</span>
  9. </div>
  10. </uib-alert>
  11. <uib-alert type="warning">
  12. Enable the view change <input type="checkbox" ng-model="vm.viewChangeEnabled">
  13. </uib-alert>
  14. <mwl-calendar
  15. events="vm.events"
  16. view="vm.calendarView"
  17. view-title="vm.viewTitle"
  18. view-date="vm.viewDate"
  19. cell-is-open="vm.isCellOpen"
  20. on-view-change-click="vm.viewChangeClicked(calendarDate, calendarNextView)">
  21. </mwl-calendar>
  22. </div>