1234567891011121314151617181920 |
- angular
- .module('mwl.calendar.docs')
- .controller('CellModifierCtrl', function(moment) {
- var vm = this;
- vm.events = [];
- vm.calendarView = 'month';
- vm.viewDate = moment().startOf('month').toDate();
- vm.cellModifier = function(cell) {
- console.log(cell);
- if (cell.label % 2 === 1 && cell.inMonth) {
- cell.cssClass = 'odd-cell';
- }
- cell.label = '-' + cell.label + '-';
- };
- });
|