onClick
Description
当用户对事件点击左键时触发
onClick: (id: string, e: Event) => boolean;
Parameters
id- (必需) string - 事件的 ide- (必需) Event - 原生事件对象
Returns
result- (boolean) - 定义事件的默认操作是否将被触发(true)还是被取消(false)
Example
scheduler.attachEvent("onClick", (id, event) => {
// 在此处编写任意自定义逻辑
return true;
});
Related samples
Details
该事件是可阻止的(blockable)。如果处理函数返回非 true 值,默认反应将被阻止。默认情况下,选择栏会显示。
Related Guides
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.