开发者

How to handle dblClick event on Fullcalendar daySlot?

开发者 https://www.devze.com 2022-12-26 00:25 出处:网络
I know its possible to receive a dayClick event on Fullcalendar. But I would like to manage just the double click event. Is t开发者_C百科his possible?There is a manageable way to handle double clicks

I know its possible to receive a dayClick event on Fullcalendar. But I would like to manage just the double click event. Is t开发者_C百科his possible?


There is a manageable way to handle double clicks in the FullCalendar dayClick event.

The "300" is really just an arbitrary amount of time in milliseconds to determine whether or not the clicks are close enough to call them a double click. If you want them faster or slower you can shrink or increase the number accordingly.

var this_click_time = new Date().getTime();

var time_since_last_click = this_click_time - last_click_time;

last_click_time = this_click_time;

if(time_since_last_click < 300)
{
    // Double Click = true;
}


currently not possible, will be possible when dayRender is developed. Alternately, you could look at this person's patch but can't say how far you'd get with it.

0

精彩评论

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