Implemented Opentsdb MultiSelect Templating.

This commit is contained in:
ubhatnagar 2015-09-23 11:22:57 +05:30
parent f632b3b029
commit 024a319512
2 changed files with 4 additions and 1 deletions

View File

@ -217,7 +217,7 @@
Multi format
</li>
<li ng-show="current.multi">
<select class="input-medium tight-form-input last" ng-model="current.multiFormat" ng-change="runQuery()" ng-options="f for f in ['glob', 'regex values', 'lucene']"></select>
<select class="input-medium tight-form-input last" ng-model="current.multiFormat" ng-change="runQuery()" ng-options="f for f in ['glob', 'regex values', 'lucene', 'pipe']"></select>
</li>
</ul>
<div class="clearfix"></div>

View File

@ -46,6 +46,9 @@ function (angular, _) {
case "lucene": {
return '(' + value.join(' OR ') + ')';
}
case "pipe": {
return value.join('|');
}
default: {
return '{' + value.join(',') + '}';
}