4

我正在使用全日历版本 2.9.1。我将日历渲染为议程周。当我从桌面单击特定时间段时,它会触发选择回调,但是当我单击移动设备时,它不会。问题是什么?

     selectable:true,
     select: function(start, end, jsEvent, view) {
      // event is firing this callback
     }

我在使用ui.calendar的角度应用程序中使用它

4

2 回答 2

6

我认为您需要点击并按住才能在移动设备中选择日期/时段... https://fullcalendar.io/docs/event_ui/longPressDelay/

于 2016-11-18T08:51:58.127 回答
1

看来您需要设置点击时间。

longPressDelay: 1

例子

$('#calendar').fullCalendar
  height: 'auto'
  nowIndicator: true
  defaultView: gon.default_view
  header: ''
  selectable: true
  selectHelper: true
  longPressDelay: 1
  selectConstraint:
    start: '00:00'
    end: '24:00'
...
于 2021-06-05T09:22:51.637 回答