开发者

FullCalendar (JQuery) -- Highlight Clicked Event POSSIBLE?

开发者 https://www.devze.com 2023-04-03 15:16 出处:网络
I am using the开发者_如何学Go Jquery FullCalendar tool.I like to CSS highlight the clicked event.I am currently using the eventClick callback to modify the (this) object but this is useless if the eve

I am using the开发者_如何学Go Jquery FullCalendar tool. I like to CSS highlight the clicked event. I am currently using the eventClick callback to modify the (this) object but this is useless if the event object spans multiple rows. Is there a proper way to highlight all parts of the event using CSS and if possible remove the highlight if another event is clicked?

Thanks


eventRender gets called for each "segment" of the event, so if your event spans 2 rows, it gets called twice for the same event (gut with a different browser element). So you should simply highlight all events that are passed to you.

In your eventClick, set some variable that you later read in eventRender to determine if you want to highlight the event or not.

0

精彩评论

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

关注公众号