These are chat archives for angular-ui/ui-calendar

27th
Oct 2015
Guilherme R Vasconcelos
@guilherme6191
Oct 27 2015 12:23

Hey guys. How to change the business hours of a calendar?
What is the parameter to pass through the calendar config and how I use the object:
{
start: '10:00', // a start time (10am in this example)
end: '18:00', // an end time (6pm in this example)

dow: [ 1, 2, 3, 4 ]
// days of week. an array of zero-based day of week integers (0=Sunday)
// (Monday-Thursday in this example)

}
?
Thanks !

Guilherme R Vasconcelos
@guilherme6191
Oct 27 2015 13:34
is the 2.0 version all released?
Guilherme R Vasconcelos
@guilherme6191
Oct 27 2015 13:47
Disregard my last post. haha wrong room.
eddiriarte
@eddiriarte
Oct 27 2015 17:23
Hey guys. How to change the business hours of a calendar?
--> "businessHours"
$scope.uiConfig = {
            calendar: {
               ..... ,
                businessHours: { ....  },
               .... ,
        }
};
Guilherme R Vasconcelos
@guilherme6191
Oct 27 2015 17:42
I did it like this:
eventRender: $scope.eventRender,
businessHours:
{
start: '09:00', // a start time (10am in this example)
end: '18:00',
dow: [ 0,1, 2, 3, 4, 5, 6 ]
},
didn't work though
eddiriarte
@eddiriarte
Oct 27 2015 17:55
its working for me, check config and change to day view, hours outside the configuration are gray.
http://jsfiddle.net/eddiriarte/nt9bh9oz/2/
Guilherme R Vasconcelos
@guilherme6191
Oct 27 2015 19:01
Thank you. I am still stuck on that but I'll try to figure it out. I will have a lot of work to do in this calendar haha