我在MVC中使用Day Pilot Scheduler,当事件移动时,我想显示一个带有ok和cancel按钮的确认模式弹出菜单。
这是我的活动移动代码:
function onEventMoving(args) {
debugger
var modal = new DayPilot.Modal();
modal.top = 60;
modal.width = 300;
modal.height = 200;
modal.opacity = 70;
modal.border = "10px solid #d0d0d0";
modal.closed = function () {
};
modal.showHtml("Do you Confirm ?");
if ((args.e.resource() === args.resource) || ((args.e.start() != args.start) && (args.e.end() != args.end))) {
args.left.enabled = false;
args.right.html = "You can't move an event for same resource";
args.allowed = false;
}
};
它不能按我想要的方式工作,也不可以在其中添加按钮。