I'm trying to display content on multiple lines in the tooltip of calendar entry for UI Calendar and it is not working.
Here is the code
$scope.onEventRender = function(event, element, view) {
if(event.hover_data) {
$timeout(function(){
var hdata = event.hover_data.join('<br />');
element.attr({'tooltip': hdata, 'tooltip-append-to-body': true});
$compile(element)($scope);
});
}
}
Here is how it looks
Please let me know what I'm doing wrong.