UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

27 lines (25 loc) 612 B
import html from '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; } }; });