Commit cd8009ec by Rashid Khan

Merge pull request #451 from rashidkpc/master

added tip directive for defining question mark tooltips
parents 838d78ce c0a5b0af
......@@ -20,6 +20,15 @@ angular.module('kibana.directives', [])
}
};
})
.directive('tip', function($compile) {
return {
restrict: 'E',
link: function(scope, elem, attrs) {
var _t = '<i class="icon-question-sign" bs-tooltip="\''+elem.text()+'\'"></i>';
elem.replaceWith($compile(angular.element(_t))(scope));
}
};
})
.directive('addPanel', function($compile) {
return {
restrict: 'A',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment