Jquery 如何自动隐藏工具提示
我想显示小弹出显示文字,如在爱奥尼亚的工具提示。所以我在使用Tooltipster这是我的代码:Jquery 如何自动隐藏工具提示,jquery,ionic-framework,Jquery,Ionic Framework,我想显示小弹出显示文字,如在爱奥尼亚的工具提示。所以我在使用Tooltipster这是我的代码: .directive('tooltip', function () { return { restrict: 'C', link: function (scope, element, attrs) { if (attrs.title) { var $element = $(element);
.directive('tooltip', function () {
return {
restrict: 'C',
link: function (scope, element, attrs) {
if (attrs.title) {
var $element = $(element);
$element.attr("title", attrs.title)
$element.tooltipster({
theme: 'tooltipster-default',
animation: attrs.animation,
trigger: "click",
position: "top",
positionTracker: true,
maxWidth: 500,
autoClose: true,
contentAsHTML: true
});
}
}
};
})
现在,一段时间后我无法隐藏自动。我正在使用以下命令。谁能帮我关门吗。
我也尝试以下方法:
$element.tooltipster('hide');
$element.tooltipster('destroy');
有关更多信息,请尝试关闭前计时器(毫秒)事件工具提示应处于活动状态
有关更多信息,请尝试关闭前计时器(毫秒)事件工具提示应处于活动状态
.directive('tooltip', function () {
return {
restrict: 'C',
link: function (scope, element, attrs) {
if (attrs.title) {
var $element = $(element);
$element.attr("title", attrs.title)
$element.tooltipster({
theme: 'tooltipster-default',
animation: attrs.animation,
trigger: "click",
position: "top",
positionTracker: true,
maxWidth: 500,
timer:500,
autoClose: true,
contentAsHTML: true
});
}
}
};
})