onBeforeTooltip

在 tooltip 即将显示于某个数据项之前触发(仅当启用 'tooltip' 扩展时生效)

boolean onBeforeTooltip(string id);
idstring即将显示 tooltip 的数据项的 ID
boolean决定默认事件动作是否继续执行(true)或被取消(false

Example

scheduler.attachEvent("onBeforeTooltip", function (id){
    // 在这里编写自定义逻辑
    return true;
});

Details

此事件可以被阻止。返回 false 将阻止 tooltip 的显示。

返回顶部