简体   繁体   English

uib-tooltip自定义触发器不起作用?

[英]uib-tooltip custom trigger do not work?

I have this tooltip on a input field: 我在输入字段上有此工具提示:

<input id="test" uib-tooltip="my tootip" tooltip-trigger="customEvent" ng-model="test" />

and i want to show it by using jquery: 我想通过使用jQuery来显示它:

$('#test').trigger('customEvent');

but i can't get it to work, my versions of ui-bootstrap-tpls is 0.14.3 但我无法正常工作,我的ui-bootstrap-tpls版本是0.14.3

i've also configured the provider like this: 我也已经像这样配置提供程序:

app.config(['$uibTooltipProvider', function ($uibTooltipProvider) {
    $uibTooltipProvider.setTriggers({
        'customEvent': 'customEvent'
    });
}]);

Anyone could explain why? 任何人都可以解释为什么?

AngularJS jQuery不支持trigger()方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM