mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
fixed layout for column options, changed dropdown for date format kept old code
This commit is contained in:
parent
69b0e63502
commit
7a7e8c57d1
@ -35,13 +35,16 @@
|
||||
|
||||
<div class="gf-form">
|
||||
<label class="gf-form-label width-11">Type</label>
|
||||
<div class="gf-form-select-wrapper width-10">
|
||||
<div class="gf-form-select-wrapper width-16">
|
||||
<select class="gf-form-input" ng-model="style.type" ng-options="c.value as c.text for c in editor.columnTypes" ng-change="editor.render()"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gf-form" ng-if="style.type === 'date'">
|
||||
<label class="gf-form-label width-11">Date Format</label>
|
||||
<metric-segment-model property="style.dateFormat" options="editor.dateFormats" on-change="editor.render()" custom="true"></metric-segment-model>
|
||||
<!--<metric-segment-model property="style.dateFormat" options="editor.dateFormats" on-change="editor.render()" custom="true" class="width-14"></metric-segment-model>-->
|
||||
<div class="gf-form-select-wrapper width-16">
|
||||
<select class="gf-form-input" ng-model="style.dateFormat" ng-options="c.value as c.text for c in editor.dateFormats" ng-change="editor.render()"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-if="style.type === 'string'">
|
||||
@ -54,7 +57,7 @@
|
||||
<div ng-if="style.type === 'number'">
|
||||
<div class="gf-form">
|
||||
<label class="gf-form-label width-11">Unit</label>
|
||||
<div class="gf-form-dropdown-typeahead width-10" ng-model="style.unit" dropdown-typeahead2="editor.unitFormats" dropdown-typeahead-on-select="editor.setUnitFormat(style, $subItem)"></div>
|
||||
<div class="gf-form-dropdown-typeahead width-16" ng-model="style.unit" dropdown-typeahead2="editor.unitFormats" dropdown-typeahead-on-select="editor.setUnitFormat(style, $subItem)"></div>
|
||||
</div>
|
||||
<div class="gf-form">
|
||||
<label class="gf-form-label width-11">Decimals</label>
|
||||
|
Loading…
Reference in New Issue
Block a user