Commit 024a3195 by ubhatnagar

Implemented Opentsdb MultiSelect Templating.

parent f632b3b0
......@@ -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>
......
......@@ -46,6 +46,9 @@ function (angular, _) {
case "lucene": {
return '(' + value.join(' OR ') + ')';
}
case "pipe": {
return value.join('|');
}
default: {
return '{' + value.join(',') + '}';
}
......
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