API事件onContextMenu本页内容onContextMenu Description 当用户在调度器内右键点击以打开上下文菜单时触发 onContextMenu: (id: string, e: Event) => void;Parameters id - (required) string - 事件的 id e - (required) Event - 原生事件对象 Examplescheduler.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.