onContextMenu
Description
Срабатывает, когда пользователь открывает контекстное меню, кликая правой кнопкой мыши внутри scheduler
onContextMenu: (id: string, e: Event) => void;
Parameters
id- (required) string - id событияe- (required) Event - нативный объект события
Example
scheduler.attachEvent("onContextMenu", function (id, e){
//здесь можно добавить кастомную логику
});
Related samples
- 10_integration/01_dhtmlxMenu.html
Details
когда пользователь кликает правой кнопкой мыши по событию, обработчик получает id этого события; если клик был не по событию, передается null.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.