简体   繁体   English

fullcalendar-在事件拖动期间禁用突出显示

[英]fullcalendar - disabling highlight on days during event dragging

I would like to drag & drop events into other dates. 我想将事件拖放到其他日期。

  1. My events can be dropped only into days later then today. 我的活动只能在今天之后的几天内删除。
  2. My events cannot be dropped into dates before today. 我的活动不能放入今天之前的日期。

Currently when dragging an event, the calendar's cells below the drag are being highlighted. 当前,当拖动事件时,拖动下方的日历单元格将突出显示。 I would like to disable this highlight for days(cells) before today (per point #2) 我想在今天之前的几天(单元格)中禁用此突出显示(按第2点)

Any idea how to disable this highlight? 任何想法如何禁用此突出显示?

Hi :) i needed to actually highlight the cell whenever mouse was over it and the way i did it was like this: ( KIND OF HACKY :P ) but it works: 嗨:)每当鼠标悬停在它上方时,我实际上都需要突出显示该单元格,而我这样做的方式是这样的:(KACK OF HACKY:P)但它可以工作:

Goto fullcalendar.js and go to this function buildTable(showNumbers) , on the line 2323 ( at least in my calendar, btw i´m using the latest version 1.6 ) edit this line: 转到fullcalendar.js并转至2323行(至少在我的日历中,我正在使用最新版本1.6)行上的函数buildTable(showNumbers )编辑此行:

"<div class='cellarea' >"; //This div doesnt have any class so i put that class there "cellarea"
            if (showNumbers) {

After this i went to my css and made this: 在此之后,我去了我的CSS,并做到了:

.cellarea:hover{
  border-color: #CCCCCC !important;
  cursor: pointer; 
  background-color: #CCCCCC;
 }

So the point is you can define the color you want on cell hover, if you define the color of your html body background color it will make it like invisible :). 因此,关键是您可以定义单元格悬停时要使用的颜色,如果您定义html主体背景色的颜色,它将使其像不可见的:)。 Hope that works for you let me know after you try. 希望对您有用,尝试后让我知道。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM