mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added hover tooltip for tags
This commit is contained in:
@@ -93,7 +93,7 @@ function (angular, app, _) {
|
|||||||
|
|
||||||
tagValuesPromise.then(function(values) {
|
tagValuesPromise.then(function(values) {
|
||||||
tag.values = values;
|
tag.values = values;
|
||||||
tag.valuesText = values.join(', ');
|
tag.valuesText = values.join(' + ');
|
||||||
_.each(vm.options, function(option) {
|
_.each(vm.options, function(option) {
|
||||||
if (_.indexOf(tag.values, option.value) !== -1) {
|
if (_.indexOf(tag.values, option.value) !== -1) {
|
||||||
option.selected = tag.selected;
|
option.selected = tag.selected;
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
<div class="variable-link-wrapper">
|
<div class="variable-link-wrapper">
|
||||||
<a ng-click="vm.show()" class="variable-value-link tight-form-item">
|
<a ng-click="vm.show()" class="variable-value-link tight-form-item">
|
||||||
{{vm.linkText}}
|
{{vm.linkText}}
|
||||||
<span class="label-tag" ng-repeat="tag in vm.selectedTags" tag-color-from-name="tag.text">
|
<span ng-repeat="tag in vm.selectedTags" bs-tooltip='tag.valuesText' data-placement="bottom">
|
||||||
<i class="fa fa-tag"></i>
|
<span class="label-tag"tag-color-from-name="tag.text">
|
||||||
{{tag.text}}
|
<i class="fa fa-tag"></i>
|
||||||
|
{{tag.text}}
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<i class="fa fa-caret-down"></i>
|
<i class="fa fa-caret-down"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user