0

我无法清除剑道工具提示。我的代码如下:

var tooltip = $("#DIV_ID").kendoTooltip();
tooltip.hide();

我也尝试过销毁事件,但工具提示没有被正确清除。

我添加了一张图片,说明清除后工具提示的显示方式。

4

1 回答 1

5

In order to invoke the method hide of kendoTooltip you should do:

tooltip.data("kendoTooltip").hide();

What you do with tooltip.hide(); is hiding the HTML element associated to the tooltip.

In order to destroy the tooltip, you should do:

tooltip.data("kendoTooltip").destroy();

Check the following example: http://jsfiddle.net/OnaBai/f5g7C/

  1. when clicking on Hide tooltip you hide the tooltip (but it will show again when the mouse is over)
  2. when clicking on Hide DIV you hide the DIV associated to the tooltip
  3. when clicking on Destroy tooltip you destroy the tooltip
于 2014-05-29T14:17:42.033 回答