mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
added tip directive for defining question mark tooltips
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user