如何从 Dhtmlx 调度程序"onLightbox"事件中删除删除按钮?



我在"onLightbox"事件中添加了以下行,但它什么也没做。

scheduler.config.buttons_right=[];

它需要在scheduler.init调用之前添加(在onLightbox事件之外),因为这是一个全局配置。

我认为它也可以添加到"onBeforeLightbox";获得更多控制:

scheduler.attachEvent("onBeforeLightbox", function (id, mode, event) {
    scheduler.config.buttons_right = [];
}

最新更新