2015-11-05 06:13:13 -06:00
|
|
|
<div class="editor-row">
|
|
|
|
<div class="section">
|
|
|
|
<h5>Data</h5>
|
|
|
|
<div class="tight-form-container">
|
|
|
|
<div class="tight-form">
|
|
|
|
<ul class="tight-form-list">
|
|
|
|
<li class="tight-form-item" style="width: 140px">
|
|
|
|
To Table Transform
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<select class="input-large tight-form-input"
|
|
|
|
ng-model="panel.transform"
|
|
|
|
ng-options="k as v.description for (k, v) in transformers"
|
2015-11-12 05:39:16 -06:00
|
|
|
ng-change="transformChanged()"></select>
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
2015-12-01 03:16:11 -06:00
|
|
|
<div class="tight-form">
|
2015-11-05 06:13:13 -06:00
|
|
|
<ul class="tight-form-list">
|
|
|
|
<li class="tight-form-item" style="width: 140px">
|
2015-11-13 03:32:01 -06:00
|
|
|
Columns
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
2015-11-13 03:32:01 -06:00
|
|
|
<li class="tight-form-item" ng-repeat="column in panel.columns">
|
|
|
|
<i class="pointer fa fa-remove" ng-click="removeColumn(column)"></i>
|
2015-11-05 06:13:13 -06:00
|
|
|
<span>
|
2015-11-13 10:36:11 -06:00
|
|
|
{{column.text}}
|
2015-11-05 06:13:13 -06:00
|
|
|
</span>
|
|
|
|
</li>
|
2015-12-01 03:16:11 -06:00
|
|
|
<li>
|
|
|
|
<metric-segment segment="addColumnSegment" get-options="getColumnOptions()" on-change="addColumn()"></metric-segment>
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="section">
|
|
|
|
<h5>Table Display</h5>
|
|
|
|
<div class="tight-form-container">
|
|
|
|
<div class="tight-form">
|
|
|
|
<ul class="tight-form-list">
|
|
|
|
<li class="tight-form-item">
|
|
|
|
Pagination (Page size)
|
|
|
|
</li>
|
|
|
|
<li>
|
2015-11-20 09:26:44 -06:00
|
|
|
<input type="number" class="input-small tight-form-input" placeholder="100"
|
2015-11-05 06:13:13 -06:00
|
|
|
empty-to-null ng-model="panel.pageSize" ng-change="render()" ng-model-onblur>
|
|
|
|
</li>
|
2015-11-12 04:36:16 -06:00
|
|
|
<li class="tight-form-item">
|
|
|
|
<editor-checkbox text="Scroll" model="panel.scroll" change="render()"></editor-checkbox>
|
|
|
|
</li>
|
|
|
|
<li class="tight-form-item">
|
|
|
|
Font size
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<select class="input-small tight-form-input" ng-model="panel.fontSize" ng-options="f for f in fontSizes" ng-change="render()"></select>
|
|
|
|
</li>
|
2015-11-05 06:13:13 -06:00
|
|
|
</ul>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="editor-row" style="margin-top: 20px">
|
|
|
|
<h5>Column Styles</h5>
|
|
|
|
|
|
|
|
<div class="tight-form-container">
|
2015-11-13 03:32:01 -06:00
|
|
|
<div ng-repeat="style in panel.styles">
|
2015-11-05 06:13:13 -06:00
|
|
|
<div class="tight-form">
|
2015-11-05 08:55:42 -06:00
|
|
|
<ul class="tight-form-list pull-right">
|
|
|
|
<li class="tight-form-item last">
|
2015-11-13 03:32:01 -06:00
|
|
|
<i class="fa fa-remove pointer" ng-click="removeColumnStyle(style)"></i>
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
2015-11-05 08:55:42 -06:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="tight-form-list">
|
2015-11-05 06:13:13 -06:00
|
|
|
<li class="tight-form-item">
|
|
|
|
Name or regex
|
|
|
|
</li>
|
|
|
|
<li>
|
2015-11-13 03:32:01 -06:00
|
|
|
<input type="text" ng-model="style.pattern" bs-typeahead="getColumnNames" ng-blur="render()" data-min-length=0 data-items=100 class="input-medium tight-form-input">
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
|
|
|
<li class="tight-form-item" style="width: 86px">
|
|
|
|
Type
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<select class="input-small tight-form-input"
|
2015-11-13 03:32:01 -06:00
|
|
|
ng-model="style.type"
|
2015-11-06 06:16:17 -06:00
|
|
|
ng-options="c.value as c.text for c in columnTypes"
|
2015-11-05 06:13:13 -06:00
|
|
|
ng-change="render()"
|
|
|
|
style="width: 150px"
|
|
|
|
></select>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2015-11-13 03:32:01 -06:00
|
|
|
<ul class="tight-form-list" ng-if="style.type === 'date'">
|
2015-11-06 06:16:17 -06:00
|
|
|
<li class="tight-form-item">
|
2015-11-05 06:13:13 -06:00
|
|
|
Format
|
|
|
|
</li>
|
|
|
|
<li>
|
2015-11-13 03:32:01 -06:00
|
|
|
<metric-segment-model property="style.dateFormat" options="dateFormats" on-change="render()" custom="true"></metric-segment-model>
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
2015-11-13 03:32:01 -06:00
|
|
|
<div class="tight-form" ng-if="style.type === 'number'">
|
2015-11-05 06:13:13 -06:00
|
|
|
<ul class="tight-form-list">
|
|
|
|
<li class="tight-form-item text-right" style="width: 93px">
|
|
|
|
Coloring
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<select class="input-small tight-form-input"
|
2015-11-13 03:32:01 -06:00
|
|
|
ng-model="style.colorMode"
|
2015-11-06 06:16:17 -06:00
|
|
|
ng-options="c.value as c.text for c in colorModes"
|
2015-11-05 06:13:13 -06:00
|
|
|
ng-change="render()"
|
|
|
|
style="width: 150px"
|
|
|
|
></select>
|
|
|
|
</li>
|
|
|
|
<li class="tight-form-item">
|
|
|
|
Thresholds<tip>Comma seperated values</tip>
|
|
|
|
</li>
|
|
|
|
<li>
|
2015-11-13 03:32:01 -06:00
|
|
|
<input type="text" class="input-small tight-form-input" style="width: 150px" ng-model="style.thresholds" ng-blur="render()" placeholder="0,50,80" array-join></input>
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
|
|
|
<li class="tight-form-item" style="width: 60px">
|
|
|
|
Colors
|
|
|
|
</li>
|
|
|
|
<li class="tight-form-item">
|
2015-11-13 03:32:01 -06:00
|
|
|
<spectrum-picker ng-model="style.colors[0]" ng-change="render()" ></spectrum-picker>
|
|
|
|
<spectrum-picker ng-model="style.colors[1]" ng-change="render()" ></spectrum-picker>
|
|
|
|
<spectrum-picker ng-model="style.colors[2]" ng-change="render()" ></spectrum-picker>
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
2015-12-11 05:01:04 -06:00
|
|
|
<li class="tight-form-item last">
|
|
|
|
<a class="pointer" ng-click="invertColorOrder($index)">invert order</a>
|
|
|
|
</li>
|
2015-11-05 06:13:13 -06:00
|
|
|
</ul>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
2015-11-13 03:32:01 -06:00
|
|
|
<div class="tight-form" ng-if="style.type === 'number'">
|
2015-11-05 06:13:13 -06:00
|
|
|
<ul class="tight-form-list">
|
|
|
|
<li class="tight-form-item text-right" style="width: 93px">
|
|
|
|
Unit
|
|
|
|
</li>
|
|
|
|
<li class="dropdown" style="width: 150px"
|
2015-11-13 03:32:01 -06:00
|
|
|
ng-model="style.unit"
|
2015-11-05 06:13:13 -06:00
|
|
|
dropdown-typeahead="unitFormats"
|
2015-11-13 03:32:01 -06:00
|
|
|
dropdown-typeahead-on-select="setUnitFormat(style, $subItem)">
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
|
|
|
<li class="tight-form-item" style="width: 86px">
|
|
|
|
Decimals
|
|
|
|
</li>
|
|
|
|
<li style="width: 105px">
|
2015-11-13 03:32:01 -06:00
|
|
|
<input type="number" class="input-mini tight-form-input" ng-model="style.decimals" ng-change="render()" ng-model-onblur>
|
2015-11-05 06:13:13 -06:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="btn btn-inverse" style="margin-top: 20px" ng-click="addColumnStyle()">
|
2015-11-23 09:10:32 -06:00
|
|
|
Add column style rule
|
2015-11-05 06:13:13 -06:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|