在 tooltip 即将显示于某个数据项之前触发(仅当启用 'tooltip' 扩展时生效)
id | string | 即将显示 tooltip 的数据项的 ID |
boolean | 决定默认事件动作是否继续执行(true)或被取消(false) |
scheduler.attachEvent("onBeforeTooltip", function (id){
// 在这里编写自定义逻辑
return true;
});
此事件可以被阻止。返回 false 将阻止 tooltip 的显示。
返回顶部