Commit 23dd46c0 by Rashid Khan

Added timepicker editor

parent 22d3fdac
<div class="row-fluid" ng-controller="timepicker">
<div class="span3">
<h6>Default Mode</h6>
<select style="width:85%" ng-model="panel.mode" ng-options="f for f in ['relative','absolute','since']"></select>
</div>
<div class="span3">
<h6>Time Field</h6>
<input type="text" class="input-small" ng-model="panel.timefield" ng-change="get_data()">
</div>
<div class="span6">
<h6>Index pattern <small>Absolutes in double quotes</small></h6>
<input type="text" class="input-large" ng-model="panel.index" ng-change="get_data()">
</div>
</div>
<div class="row-fluid">
<h5>Relative mode <small>settings</small></h5>
<div class="span8">
<h6>Relative time options <small>comma seperated</small></h6>
<input type="text" array-join class="input-large" ng-model="panel.time_options" ng-change="get_data()">
</div>
<div class="span3">
<h6>Default timespan</h6>
<select class="input-mini" ng-model="panel.timespan" ng-options="f for f in panel.time_options"></select>
</div>
<div class="row-fluid">
<h5>Auto-refresh <small>settings</small></h5>
<div class="span1">
<label class="small"> Enable </label><input type="checkbox" ng-model="panel.refresh.enable" ng-checked="panel.refresh.enable">
</div>
<div class="span2">
<label class="small"> Interval (seconds) </label>
<input type="number" array-join class="input-mini" ng-model="panel.refresh.interval">
</div>
<div class="span3">
<label class="small"> Minimum Interval (seconds) </label>
<input type="number" array-join class="input-mini" ng-model="panel.refresh.min">
</div>
</div>
\ No newline at end of file
......@@ -33,6 +33,7 @@ angular.module('kibana.timepicker', [])
mode : "relative",
time_options : ['5m','15m','1h','6h','12h','24h','2d','7d','30d'],
timespan : '15m',
timefield : '@timestamp',
index : '"logstash-"yyyy.mm.dd',
group : "default",
refresh : {
......
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