Added relative/absolute/since time selector. Moved refresh func out to panel
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<div ng-controller='stringquery'>
|
||||
<h4 ng-class="{'ng-cloak': !panel.title}">{{panel.title}}</h4>
|
||||
<form class="form-search" style="margin-bottom:0px">
|
||||
<input type="text" class="input-medium search-query" ng-model="query" style="width:85%">
|
||||
<button type="submit" class="btn" ng-click="send_query(query)">Search</button>
|
||||
<form class="input-append" style="margin-bottom:0px; white-space:nowrap;">
|
||||
<label><small>{{panel.label}}</small></label>
|
||||
<input type="text" ng-model="panel.query" style="width:90%">
|
||||
<button type="submit" class="btn" ng-click="send_query(panel.query)"><i class="icon-search"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -3,6 +3,7 @@ angular.module('kibana.stringquery', [])
|
||||
|
||||
// Set and populate defaults
|
||||
var _d = {
|
||||
label : "Search",
|
||||
query : "*",
|
||||
size : 100,
|
||||
sort : [config.timefield,'desc'],
|
||||
|
||||
Reference in New Issue
Block a user