我正在使用fullcalendar版本2.9.1。我将日历呈现为 agendaWeek 。当我点击桌面上的特定时间段时,它会触发选择回调,但是当我点击移动设备时它不是。有什么问题?
selectable:true,
select: function(start, end, jsEvent, view) {
// event is firing this callback
}
我在角色应用程序中使用 ui.calendar
答案 0 :(得分:0)
我认为您需要点击并按住以便在移动设备中选择日期/广告位... https://fullcalendar.io/docs/event_ui/longPressDelay/
答案 1 :(得分:0)
好像需要设置点击时间。
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'
...