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

9th
Nov 2015
Arvind Das
@arvind-das
Nov 09 2015 09:02
Hi Guys, can anybody tell me how to get event on particular date click
I can get click events from the event source I created
I need to fire click event on date itself
Arvind Das
@arvind-das
Nov 09 2015 09:19
Got it, need to define
$scope.uiConfig = {
calendar:{
height: 500,
editable: true,
header:{
left: 'prev,next',
center: 'title',
right: 'agendaDay agendaWeek'
},
select: function(start, end, allDay, jsEvent) {
$scope.openPopover(start, end, allDay, jsEvent);
}
}
};
also set selectable :true in config
@eddiriarte check if above helps you
Vítor Nóbrega
@vitornobrega
Nov 09 2015 14:18
hello people, where i can change the template of each callendar cell? I need to implement a calendar like this http://prntscr.com/90smzx .
Sohail Somani
@sohailsomani
Nov 09 2015 23:47
@vitornobrega I found this works pretty OK but I'm not sure it's really the right way: eventRender: function(calEvent,jsElement,view) {
var event = $('<div event/>');
event.attr('event-id',calEvent.id);
jsElement.find('.fc-content').replaceWith(event);
$compile(jsElement.contents())($scope);
},
oh and you need to have a event directive, obvs
now, does anyone know how to force the thing to refresh