关于事件点击问题

on Event Clicked issue

我正在为我的大学项目使用 Bootstrap 4 Beta 和 JavaScript,我正在制作一些日历事件功能。我使用 Bootbox.js 作为弹出窗口,我的问题是当我单击显示日历事件警报但此警报无法自定义时,我想知道如何添加 <div> <button> textetc这个提醒,看我的附图,你就明白了

这是我的脚本,

事件

 dp.events.list = [{
      start: "2017-12-20",
      end: "2017-12-28",
      id: "1",
         resource: "A",
      text: "Mahesh",
      backColor: "#70CB85",


    },

点击

dp.onEventClicked = function(args) {
 bootbox.alert(" " + args.e.text()); //Alert
};

您可以轻松地将 html 置于警报状态。

bootbox.alert("Your message <b>here…</b>")

有关警报的更多选项,请参阅this link

从他们的 documentation 开始:

An alert callback should not supply an argument; it will be ignored

如果你想传递一个按钮你可以使用confirm:

bootbox.confirm({
    message: "This is a confirm with custom button text and color! Do you like it?",
    buttons: {
        confirm: {
            label: 'Yes',
            className: 'btn-success'
        },
        cancel: {
            label: 'No',
            className: 'btn-danger'
        }
    },
    callback: function (result) {
        // ...
    }
});

或使用对话框:

bootbox.dialog({ message: '<div class="text-center"><i class="fa fa-spin fa-spinner"></i> Loading...</div>' })