I am using the uiCalendar
and have added:
$scope.dayClick = function (date, jsEvent, view) {
alert('Clicked on: ' + date.format());
//alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
//alert('Current view: ' + view.name);
}
This works if I click an empty space in the entire cell, Can I configure this event to only be triggered if I click the on actual day text (ie 11)?
thanks
I just figured this out
$scope.dayClick = function (date, jsEvent, view) {
if (jsEvent.target.classList.contains('fc-day-number')) {
alert('Clicked on: ' + date.format());
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.