UNPKG

kibana-with-account

Version:

kibana-with-account is develop based kibana project

29 lines (27 loc) 697 B
define(function (require) { var html = require('ui/tooltip/tooltip.html'); require('ui-bootstrap') .config(function ($tooltipProvider) { $tooltipProvider.options({ placement: 'bottom', animation: true, popupDelay: 150, appendToBody: false }); }) .directive('kbnTooltip', function () { return { restrict: 'E', template: html, transclude: true, replace: true, scope: true, link: function ($scope, $el, attr) { $scope.text = attr.text; $scope.placement = attr.placement || 'top'; $scope.delay = attr.delay || 400; $scope.appendToBody = attr.appendToBody || 0; } }; }); });