angular-ui / ui-calendar

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

Change events presentation #315

Open sutkovoy opened 9 years ago

sutkovoy commented 9 years ago

Can i change $scope.events presentation from:

        $scope.events = [
            {title: 'All Day Event',start: new Date(y, m, 1)},
            {id: 999,title: 'Repeating Event',start: new Date(y, m, d - 3, 16, 0),allDay: false},
            {id: 999,title: 'Repeating Event',start: new Date(y, m, d + 4, 16, 0),allDay: false},
            {title: 'Birthday Party',start: new Date(y, m, d + 1, 19, 0),end: new Date(y, m, d + 1, 22, 30),allDay: false},
            {title: 'Click for Google',start: new Date(y, m, 28),end: new Date(y, m, 29),url: 'http://google.com/'}
        ];

to:

        $scope.events = [
            {name: 'All Day Event',day_start: new Date(y, m, 1)},
            {id: 999,name: 'Repeating Event',day_start: new Date(y, m, d - 3, 16, 0),allDay: false},
            {id: 999,name: 'Repeating Event',day_start: new Date(y, m, d + 4, 16, 0),allDay: false},
            {name: 'Birthday Party',day_start: new Date(y, m, d + 1, 19, 0),end: new Date(y, m, d + 1, 22, 30),allDay: false},
            {name: 'Click for Google',day_start: new Date(y, m, 28),end: new Date(y, m, 29),url: 'http://google.com/'}
        ];