Commit c5435596 by utkarshcmu

Added All Value support for custom type templating

parent 0a0a0776
...@@ -146,6 +146,23 @@ ...@@ -146,6 +146,23 @@
</ul> </ul>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
<div class="tight-form">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 100px;">
<editor-checkbox text="All value" model="current.includeAll" change="runQuery()"></editor-checkbox>
</li>
<li ng-show="current.includeAll">
<input type="text" class="input-xlarge tight-form-input" style="width:364px" ng-model='current.options[0].value'></input>
</li>
<li class="tight-form-item" ng-show="current.includeAll">
All format
</li>
<li ng-show="current.includeAll">
<select class="input-medium tight-form-input last" ng-model="current.allFormat" ng-change="runQuery()" ng-options="f for f in ['glob', 'wildcard', 'regex wildcard', 'regex values', 'lucene', 'pipe']"></select>
</li>
</ul>
<div class="clearfix"></div>
</div>
</div> </div>
<div ng-show="current.type === 'query'"> <div ng-show="current.type === 'query'">
......
...@@ -115,6 +115,11 @@ function (angular, _, kbn) { ...@@ -115,6 +115,11 @@ function (angular, _, kbn) {
if (variable.type === 'interval') { if (variable.type === 'interval') {
self.updateAutoInterval(variable); self.updateAutoInterval(variable);
} }
if (variable.type === 'custom' && variable.includeAll) {
self.addAllOption(variable);
}
}; };
this.updateOptions = function(variable) { this.updateOptions = function(variable) {
......
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