mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
190 lines
6.6 KiB
HTML
190 lines
6.6 KiB
HTML
<div class="editor-row">
|
|
<div class="section tight-form-container" style="margin-bottom: 20px">
|
|
<div class="tight-form">
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item" style="width: 80px">
|
|
<strong>Big value</strong>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Prefix
|
|
</li>
|
|
<li>
|
|
<input type="text" class="input-small tight-form-input"
|
|
ng-model="ctrl.panel.prefix" ng-change="ctrl.render()" ng-model-onblur>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Value
|
|
</li>
|
|
<li>
|
|
<select class="input-small tight-form-input" ng-model="ctrl.panel.valueName" ng-options="f for f in ['min','max','avg', 'current', 'total']" ng-change="ctrl.render()"></select>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Postfix
|
|
</li>
|
|
<li>
|
|
<input type="text" class="input-small tight-form-input last"
|
|
ng-model="ctrl.panel.postfix" ng-change="ctrl.render()" ng-model-onblur>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="tight-form">
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item" style="width: 80px">
|
|
<strong>Font size</strong>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Prefix
|
|
</li>
|
|
<li>
|
|
<select class="input-small tight-form-input" ng-model="ctrl.panel.prefixFontSize" ng-options="f for f in ctrl.fontSizes" ng-change="ctrl.render()"></select>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Value
|
|
</li>
|
|
<li>
|
|
<select class="input-small tight-form-input" ng-model="ctrl.panel.valueFontSize" ng-options="f for f in ctrl.fontSizes" ng-change="ctrl.render()"></select>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Postfix
|
|
</li>
|
|
<li>
|
|
<select class="input-small tight-form-input last" ng-model="ctrl.panel.postfixFontSize" ng-options="f for f in ctrl.fontSizes" ng-change="ctrl.render()"></select>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="tight-form">
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item" style="width: 80px">
|
|
<strong>Unit</strong>
|
|
</li>
|
|
<li class="dropdown" style="width: 266px;"
|
|
ng-model="ctrl.panel.format"
|
|
dropdown-typeahead="ctrl.unitFormats"
|
|
dropdown-typeahead-on-select="ctrl.setUnitFormat($subItem)">
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Decimals
|
|
</li>
|
|
<li>
|
|
<input type="number" class="input-small tight-form-input last" placeholder="auto" bs-tooltip="'Override automatic decimal precision for legend and tooltips'" data-placement="right"
|
|
ng-model="ctrl.panel.decimals" ng-change="ctrl.render()" ng-model-onblur>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="editor-row">
|
|
<div class="section" style="margin-bottom: 20px">
|
|
<div class="tight-form last">
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item" style="width: 80px">
|
|
<strong>Coloring</strong>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Background
|
|
<input class="cr1" id="ctrl.panel.colorBackground" type="checkbox"
|
|
ng-model="ctrl.panel.colorBackground" ng-checked="ctrl.panel.colorBackground" ng-change="ctrl.render()">
|
|
<label for="ctrl.panel.colorBackground" class="cr1"></label>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Value
|
|
<input class="cr1" id="ctrl.panel.colorValue" type="checkbox"
|
|
ng-model="ctrl.panel.colorValue" ng-checked="ctrl.panel.colorValue" ng-change="ctrl.render()">
|
|
<label for="ctrl.panel.colorValue" class="cr1"></label>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Thresholds<tip>Define two threshold values<br /> 50,80 will produce: <50 = Green, 50:80 = Yellow, >80 = Red</tip>
|
|
</li>
|
|
<li>
|
|
<input type="text" class="input-large tight-form-input" ng-model="ctrl.panel.thresholds" ng-blur="ctrl.render()" placeholder="50,80"></input>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Colors
|
|
</li>
|
|
<li class="tight-form-item">
|
|
<spectrum-picker ng-model="ctrl.panel.colors[0]" ng-change="ctrl.render()" ></spectrum-picker>
|
|
<spectrum-picker ng-model="ctrl.panel.colors[1]" ng-change="ctrl.render()" ></spectrum-picker>
|
|
<spectrum-picker ng-model="ctrl.panel.colors[2]" ng-change="ctrl.render()" ></spectrum-picker>
|
|
</li>
|
|
<li class="tight-form-item last">
|
|
<a class="pointer" ng-click="ctrl.invertColorOrder()">invert order</a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="editor-row">
|
|
<div class="section" style="margin-bottom: 20px">
|
|
<div class="tight-form last">
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item" style="width: 80px">
|
|
<strong>Spark lines</strong>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Show
|
|
<input class="cr1" id="ctrl.panel.sparkline.show" type="checkbox"
|
|
ng-model="ctrl.panel.sparkline.show" ng-checked="ctrl.panel.sparkline.show" ng-change="ctrl.render()">
|
|
<label for="ctrl.panel.sparkline.show" class="cr1"></label>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Background mode
|
|
<input class="cr1" id="ctrl.panel.sparkline.full" type="checkbox"
|
|
ng-model="ctrl.panel.sparkline.full" ng-checked="ctrl.panel.sparkline.full" ng-change="ctrl.render()">
|
|
<label for="ctrl.panel.sparkline.full" class="cr1"></label>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Line Color
|
|
</li>
|
|
<li class="tight-form-item">
|
|
<spectrum-picker ng-model="ctrl.panel.sparkline.lineColor" ng-change="ctrl.render()" ></spectrum-picker>
|
|
</li>
|
|
<li class="tight-form-item">
|
|
Fill Color
|
|
</li>
|
|
<li class="tight-form-item last">
|
|
<spectrum-picker ng-model="ctrl.panel.sparkline.fillColor" ng-change="ctrl.render()" ></spectrum-picker>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="editor-row">
|
|
<div class="section" style="margin-bottom: 20px">
|
|
<div class="tight-form last">
|
|
<ul class="tight-form-list">
|
|
<li class="tight-form-item">
|
|
<strong>Value to text mapping</strong>
|
|
</li>
|
|
<li class="tight-form-item" ng-repeat-start="map in ctrl.panel.valueMaps">
|
|
<i class="fa fa-remove pointer" ng-click="ctrl.removeValueMap(map)"></i>
|
|
</li>
|
|
<li>
|
|
<input type="text" ng-model="map.value" placeholder="value" class="input-mini tight-form-input" ng-blur="ctrl.render()">
|
|
</li>
|
|
<li class="tight-form-item">
|
|
<i class="fa fa-arrow-right"></i>
|
|
</li>
|
|
<li ng-repeat-end>
|
|
<input type="text" placeholder="text" ng-model="map.text" class="input-mini tight-form-input" ng-blur="ctrl.render()">
|
|
</li>
|
|
|
|
<li>
|
|
<a class="pointer tight-form-item last" ng-click="ctrl.addValueMap();">
|
|
<i class="fa fa-plus"></i>
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|