Sha256: a60128518f28a008ec7c0afc11126b1e59639193ae13c32c14eee950f9a585f8

Contents?: true

Size: 480 Bytes

Versions: 9

Compression:

Stored size: 480 Bytes

Contents

define([
  'angular',
  'kbn'
],
function (angular, kbn) {
  'use strict';

  angular
    .module('kibana.directives')
    .directive('tip', function($compile) {
      return {
        restrict: 'E',
        link: function(scope, elem, attrs) {
          var _t = '<i class="icon-'+(attrs.icon||'question-sign')+'" bs-tooltip="\''+
            kbn.addslashes(elem.text())+'\'"></i>';
          elem.replaceWith($compile(angular.element(_t))(scope));
        }
      };
    });
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kibana-sinatra-3.0.0.0 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.8 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.7 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.6 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.5 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.4 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.3 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.2 lib/kibana/assets/app/directives/tip.js
kibana-sinatra-0.0.1 lib/kibana/assets/app/directives/tip.js