2015-05-29 08:21:44 +02:00
|
|
|
<div class="variable-link-wrapper">
|
2019-11-25 07:29:01 +01:00
|
|
|
<a
|
|
|
|
|
ng-click="vm.show()"
|
|
|
|
|
class="variable-value-link"
|
|
|
|
|
aria-label="Dashboard template variables Variable Value DropDown value link"
|
|
|
|
|
>
|
2015-05-29 10:52:38 +02:00
|
|
|
{{vm.linkText}}
|
2015-06-02 19:51:12 +02:00
|
|
|
<span ng-repeat="tag in vm.selectedTags" bs-tooltip='tag.valuesText' data-placement="bottom">
|
|
|
|
|
<span class="label-tag"tag-color-from-name="tag.text">
|
|
|
|
|
<i class="fa fa-tag"></i>
|
|
|
|
|
{{tag.text}}
|
|
|
|
|
</span>
|
2015-05-28 18:38:53 +02:00
|
|
|
</span>
|
2017-12-13 18:01:06 +01:00
|
|
|
<i class="fa fa-caret-down" style="font-size:12px"></i>
|
2015-04-30 11:15:26 +02:00
|
|
|
</a>
|
2015-05-29 08:21:44 +02:00
|
|
|
|
2019-10-18 11:40:08 +02:00
|
|
|
<input type="text" class="gf-form-input" style="display: none" ng-keydown="vm.keyDown($event)" ng-model="vm.search.query" ng-change="vm.debouncedQueryChanged()" ></input>
|
2015-04-30 11:15:26 +02:00
|
|
|
|
2019-11-25 07:29:01 +01:00
|
|
|
<div
|
|
|
|
|
class="variable-value-dropdown"
|
|
|
|
|
ng-if="vm.dropdownVisible"
|
|
|
|
|
ng-class="{'multi': vm.variable.multi, 'single': !vm.variable.multi}"
|
|
|
|
|
aria-label="Dashboard template variables Variable Value DropDown DropDown"
|
|
|
|
|
>
|
2015-05-28 12:52:47 +02:00
|
|
|
<div class="variable-options-wrapper">
|
|
|
|
|
<div class="variable-options-column">
|
2019-11-25 07:29:01 +01:00
|
|
|
<a
|
|
|
|
|
class="variable-options-column-header"
|
|
|
|
|
ng-if="vm.variable.multi"
|
|
|
|
|
ng-class="{'many-selected': vm.selectedValues.length > 1}"
|
|
|
|
|
bs-tooltip="'Clear selections'"
|
|
|
|
|
data-placement="top"
|
|
|
|
|
ng-click="vm.clearSelections()"
|
|
|
|
|
aria-label="Dashboard template variables Variable Value DropDown Selected link"
|
|
|
|
|
>
|
2015-05-29 10:00:53 +02:00
|
|
|
<span class="variable-option-icon"></span>
|
2015-06-01 10:43:25 +02:00
|
|
|
Selected ({{vm.selectedValues.length}})
|
2015-05-29 10:00:53 +02:00
|
|
|
</a>
|
2019-11-25 07:29:01 +01:00
|
|
|
<a
|
|
|
|
|
class="variable-option pointer"
|
|
|
|
|
ng-repeat="option in vm.search.options"
|
|
|
|
|
ng-class="{'selected': option.selected, 'highlighted': $index === vm.highlightIndex}"
|
|
|
|
|
ng-click="vm.selectValue(option, $event)"
|
|
|
|
|
>
|
2015-05-29 08:21:44 +02:00
|
|
|
<span class="variable-option-icon"></span>
|
2019-11-25 07:29:01 +01:00
|
|
|
<span aria-label="Dashboard template variables Variable Value DropDown option text">{{option.text}}</span>
|
2015-05-28 12:52:47 +02:00
|
|
|
</a>
|
|
|
|
|
</div>
|
2015-05-29 10:52:38 +02:00
|
|
|
<div class="variable-options-column" ng-if="vm.tags.length">
|
2015-05-29 10:00:53 +02:00
|
|
|
<div class="variable-options-column-header text-center">
|
|
|
|
|
Tags
|
|
|
|
|
</div>
|
2015-05-29 10:52:38 +02:00
|
|
|
<a class="variable-option-tag pointer" ng-repeat="tag in vm.tags" ng-click="vm.selectTag(tag, $event)" ng-class="{'selected': tag.selected}">
|
2015-05-28 12:52:47 +02:00
|
|
|
<span class="fa fa-fw variable-option-icon"></span>
|
2015-05-28 18:38:53 +02:00
|
|
|
<span class="label-tag" tag-color-from-name="tag.text">{{tag.text}} <i class="fa fa-tag"></i> </span>
|
2015-05-28 12:52:47 +02:00
|
|
|
</a>
|
|
|
|
|
</div>
|
2015-04-30 11:15:26 +02:00
|
|
|
</div>
|
2015-04-27 13:59:20 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|