javascript - 如何将jqxscheduler拖到日历外
问题描述
我正在使用jqxscheduler。我想启用将事件拖动到下面的整个窗口给我正在使用initialize
的日历代码我需要添加移动以使事件框可以拖动到日历之外
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2017, 11, 23),
width: "100%",
height: "100%",
source: adapter,
renderAppointment: function(data) {
set();
var img = "<img style='top: 2px; height: 17px; position: relative;' src='" + data.appointment.location + "'/>";
if (data.view == "weekView" || data.view == "dayView" || data.view == "monthView") {
data.style = data.appointment.desc;
data.style = data.appointment.description;
data.html = img + "<i>" + data.appointment.subject + "</i>";
/*
if (data.appointment.id == "id1") {
data.style = "#AA4643";
}
else if (data.appointment.id == "id2" || data.appointment.id == "id6") {
data.style = "#309B46";
}
else if (data.appointment.id == "id3") {
data.style = "#447F6E";
}*/
}
return data;
},
ready: function() {
$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id-11');
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "location",
subject: "subject",
style: "style",
color: "color",
background: "background",
borderColor: "borderColor"
},
view: 'weekView',
appointmentsMinHeight: 20,
width: '100%',
height: '100%',
views: [{
type: "dayView",
showWeekends: false,
timeRuler: {
scale: "quarterHour"
}
},
{
type: "weekView",
showWeekends: false,
timeRuler: {
scale: "quarterHour"
}
},
{
type: "monthView",
showWeekends: false,
timeRuler: {
scale: "quarterHour"
}
},
]
});
请检查上述定义代码的输出
解决方案
推荐阅读
- c# - 如何从包含在第一个列表中的第二个列表中获取具有值的列?
- jmeter - 使用jmeter如何检查数组中是否存在元素
- python - 如何在 Tensorflow 中将张量读取为 numpy 数组或列表?
- python - 迭代 numpy 数组的 numpy 数组的更快方法
- python - Python:在一个大列表中而不是另一个列表中查找所有元素的最快方法
- azure-logic-apps - 文件路径的逻辑应用表达式不起作用
- python - 使用 Python 多线程顺序读取和写入核心文件
- ios - 如何处理 UIViewControllerRepresentable 包装器中的 NavigationLink?
- android - FirebaseRemoteConfig.activateFetched() 已弃用。改用什么?
- autohotkey - AutoHotKey:将鼠标中键重新映射到 ctrl