mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Angular/React: Migrates FolderPicker from angular to react * move to core * snap * minor changes * more removes * Managing creating new and saving in movetofolderctrl * Do not use new forms.field, fix select menu * FolderPicker responsible to creating new folder * create new as prop * snap * remove unnecessary things * remove console log * snap * fix null checks * add search debouncing * set folder to state, null check * typing folder * adding case for loadOptions * snap Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
46 lines
1.8 KiB
HTML
46 lines
1.8 KiB
HTML
<div>
|
|
<div class="section gf-form-group">
|
|
<h5 class="section-heading">Options</h5>
|
|
|
|
<gf-form-switch class="gf-form" label="Starred" label-class="width-9" checked="ctrl.panel.starred"
|
|
on-change="ctrl.refresh()"></gf-form-switch>
|
|
<gf-form-switch class="gf-form" label="Recently viewed" label-class="width-9" checked="ctrl.panel.recent"
|
|
on-change="ctrl.refresh()"></gf-form-switch>
|
|
<gf-form-switch class="gf-form" label="Search" label-class="width-9" checked="ctrl.panel.search"
|
|
on-change="ctrl.refresh()"></gf-form-switch>
|
|
|
|
<gf-form-switch class="gf-form" label="Show headings" label-class="width-9" checked="ctrl.panel.headings"
|
|
on-change="ctrl.refresh()"></gf-form-switch>
|
|
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-9">Max items</span>
|
|
<input class="gf-form-input max-width-5" type="number" ng-model="ctrl.panel.limit" ng-model-onblur
|
|
ng-change="ctrl.refresh()">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section gf-form-group">
|
|
<h5 class="section-heading">Search</h5>
|
|
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-6">Query</span>
|
|
<input type="text" class="gf-form-input" placeholder="title query" ng-model="ctrl.panel.query"
|
|
ng-change="ctrl.refresh()" ng-model-onblur>
|
|
</div>
|
|
|
|
<div class="gf-form">
|
|
<folder-picker initial-folder-id="ctrl.panel.folderId" on-change="ctrl.onFolderChange" label-class="width-6"
|
|
initial-title="'All'" enable-reset="true">
|
|
</folder-picker>
|
|
</div>
|
|
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-6">Tags</span>
|
|
<bootstrap-tagsinput ng-model="ctrl.panel.tags" tagclass="label label-tag" placeholder="add tags"
|
|
on-tags-updated="ctrl.refresh()">
|
|
</bootstrap-tagsinput>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|