Commit 656ec9c4 by Torkel Ödegaard

SinglestatPanel: added more fontsize options, Closes #1187

parent f5e8f933
...@@ -23,15 +23,15 @@ ...@@ -23,15 +23,15 @@
<h5>Big value font size</h5> <h5>Big value font size</h5>
<div class="editor-option"> <div class="editor-option">
<label class="small">Prefix</label> <label class="small">Prefix</label>
<select class="input-mini" style="width: 75px;" ng-model="panel.prefixFontSize" ng-options="f for f in ['30%','50%','70%','80%','100%']" ng-change="render()"></select> <select class="input-mini" style="width: 75px;" ng-model="panel.prefixFontSize" ng-options="f for f in fontSizes" ng-change="render()"></select>
</div> </div>
<div class="editor-option"> <div class="editor-option">
<label class="small">Value</label> <label class="small">Value</label>
<select class="input-mini" style="width: 75px;" ng-model="panel.valueFontSize" ng-options="f for f in ['30%','50%','70%','80%','100%', '110%', '120%']" ng-change="render()"></select> <select class="input-mini" style="width: 75px;" ng-model="panel.valueFontSize" ng-options="f for f in fontSizes" ng-change="render()"></select>
</div> </div>
<div class="editor-option"> <div class="editor-option">
<label class="small">Postfix</label> <label class="small">Postfix</label>
<select class="input-mini" style="width: 75px;" ng-model="panel.postfixFontSize" ng-options="f for f in ['30%','50%','70%','80%','100%']" ng-change="render()"></select> <select class="input-mini" style="width: 75px;" ng-model="panel.postfixFontSize" ng-options="f for f in fontSizes" ng-change="render()"></select>
</div> </div>
</div> </div>
......
...@@ -22,6 +22,8 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) { ...@@ -22,6 +22,8 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
metricsEditor: true metricsEditor: true
}); });
$scope.fontSizes = ['20%', '30%','50%','70%','80%','100%', '110%', '120%', '150%', '170%', '200%'];
$scope.panelMeta.addEditorTab('Options', 'app/panels/singlestat/editor.html'); $scope.panelMeta.addEditorTab('Options', 'app/panels/singlestat/editor.html');
// Set and populate defaults // Set and populate defaults
......
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