开发者

Sort functionality for fullcalendar event objects

开发者 https://www.devze.com 2023-03-22 18:29 出处:网络
Does fullcalendar support sorting of clientEvents objects, I need 开发者_如何学编程them for notification functionality which will show the latest of the events?If you want the last event just select t

Does fullcalendar support sorting of clientEvents objects, I need 开发者_如何学编程them for notification functionality which will show the latest of the events?


If you want the last event just select the last elements of the array:

var events = $('#calendar').fullCalendar( 'clientEvents');
var lastEvent = events[events.length -1];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号