editor.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <div class="editor-row">
  2. <div class="section tight-form-container" style="margin-bottom: 20px">
  3. <div class="tight-form">
  4. <ul class="tight-form-list">
  5. <li class="tight-form-item" style="width: 80px">
  6. <strong>Big value</strong>
  7. </li>
  8. <li class="tight-form-item">
  9. Prefix
  10. </li>
  11. <li>
  12. <input type="text" class="input-small tight-form-input"
  13. ng-model="ctrl.panel.prefix" ng-change="ctrl.render()" ng-model-onblur>
  14. </li>
  15. <li class="tight-form-item">
  16. Value
  17. </li>
  18. <li>
  19. <select class="input-small tight-form-input"
  20. ng-model="ctrl.panel.valueName"
  21. ng-options="f for f in ctrl.valueNameOptions"
  22. ng-change="ctrl.render()"></select>
  23. </li>
  24. <li class="tight-form-item">
  25. Postfix
  26. </li>
  27. <li>
  28. <input type="text" class="input-small tight-form-input last"
  29. ng-model="ctrl.panel.postfix" ng-change="ctrl.render()" ng-model-onblur>
  30. </li>
  31. </ul>
  32. <div class="clearfix"></div>
  33. </div>
  34. <div class="tight-form">
  35. <ul class="tight-form-list">
  36. <li class="tight-form-item" style="width: 80px">
  37. <strong>Font size</strong>
  38. </li>
  39. <li class="tight-form-item">
  40. Prefix
  41. </li>
  42. <li>
  43. <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>
  44. </li>
  45. <li class="tight-form-item">
  46. Value
  47. </li>
  48. <li>
  49. <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>
  50. </li>
  51. <li class="tight-form-item">
  52. Postfix
  53. </li>
  54. <li>
  55. <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>
  56. </li>
  57. </ul>
  58. <div class="clearfix"></div>
  59. </div>
  60. <div class="tight-form">
  61. <ul class="tight-form-list">
  62. <li class="tight-form-item" style="width: 80px">
  63. <strong>Unit</strong>
  64. </li>
  65. <li class="dropdown" style="width: 266px;"
  66. ng-model="ctrl.panel.format"
  67. dropdown-typeahead="ctrl.unitFormats"
  68. dropdown-typeahead-on-select="ctrl.setUnitFormat($subItem)">
  69. </li>
  70. <li class="tight-form-item">
  71. Decimals
  72. </li>
  73. <li>
  74. <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"
  75. ng-model="ctrl.panel.decimals" ng-change="ctrl.render()" ng-model-onblur>
  76. </li>
  77. </ul>
  78. <div class="clearfix"></div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="editor-row">
  83. <div class="section" style="margin-bottom: 20px">
  84. <div class="tight-form last">
  85. <ul class="tight-form-list">
  86. <li class="tight-form-item" style="width: 80px">
  87. <strong>Coloring</strong>
  88. </li>
  89. <li class="tight-form-item">
  90. Background&nbsp;
  91. <input class="cr1" id="ctrl.panel.colorBackground" type="checkbox"
  92. ng-model="ctrl.panel.colorBackground" ng-checked="ctrl.panel.colorBackground" ng-change="ctrl.render()">
  93. <label for="ctrl.panel.colorBackground" class="cr1"></label>
  94. </li>
  95. <li class="tight-form-item">
  96. Value&nbsp;
  97. <input class="cr1" id="ctrl.panel.colorValue" type="checkbox"
  98. ng-model="ctrl.panel.colorValue" ng-checked="ctrl.panel.colorValue" ng-change="ctrl.render()">
  99. <label for="ctrl.panel.colorValue" class="cr1"></label>
  100. </li>
  101. <li class="tight-form-item">
  102. Thresholds<tip>Define two threshold values&lt;br /&gt; 50,80 will produce: &lt;50 = Green, 50:80 = Yellow, &gt;80 = Red</tip>
  103. </li>
  104. <li>
  105. <input type="text" class="input-large tight-form-input" ng-model="ctrl.panel.thresholds" ng-blur="ctrl.render()" placeholder="50,80"></input>
  106. </li>
  107. <li class="tight-form-item">
  108. Colors
  109. </li>
  110. <li class="tight-form-item">
  111. <spectrum-picker ng-model="ctrl.panel.colors[0]" ng-change="ctrl.render()" ></spectrum-picker>
  112. <spectrum-picker ng-model="ctrl.panel.colors[1]" ng-change="ctrl.render()" ></spectrum-picker>
  113. <spectrum-picker ng-model="ctrl.panel.colors[2]" ng-change="ctrl.render()" ></spectrum-picker>
  114. </li>
  115. <li class="tight-form-item last">
  116. <a class="pointer" ng-click="ctrl.invertColorOrder()">invert order</a>
  117. </li>
  118. </ul>
  119. <div class="clearfix"></div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="editor-row">
  124. <div class="section" style="margin-bottom: 20px">
  125. <div class="tight-form last">
  126. <ul class="tight-form-list">
  127. <li class="tight-form-item" style="width: 80px">
  128. <strong>Spark lines</strong>
  129. </li>
  130. <li class="tight-form-item">
  131. Show&nbsp;
  132. <input class="cr1" id="ctrl.panel.sparkline.show" type="checkbox"
  133. ng-model="ctrl.panel.sparkline.show" ng-checked="ctrl.panel.sparkline.show" ng-change="ctrl.render()">
  134. <label for="ctrl.panel.sparkline.show" class="cr1"></label>
  135. </li>
  136. <li class="tight-form-item">
  137. Background mode&nbsp;
  138. <input class="cr1" id="ctrl.panel.sparkline.full" type="checkbox"
  139. ng-model="ctrl.panel.sparkline.full" ng-checked="ctrl.panel.sparkline.full" ng-change="ctrl.render()">
  140. <label for="ctrl.panel.sparkline.full" class="cr1"></label>
  141. </li>
  142. <li class="tight-form-item">
  143. Line Color
  144. </li>
  145. <li class="tight-form-item">
  146. <spectrum-picker ng-model="ctrl.panel.sparkline.lineColor" ng-change="ctrl.render()" ></spectrum-picker>
  147. </li>
  148. <li class="tight-form-item">
  149. Fill Color
  150. </li>
  151. <li class="tight-form-item last">
  152. <spectrum-picker ng-model="ctrl.panel.sparkline.fillColor" ng-change="ctrl.render()" ></spectrum-picker>
  153. </li>
  154. </ul>
  155. <div class="clearfix"></div>
  156. </div>
  157. </div>
  158. </div>
  159. <div class="editor-row">
  160. <div class="section" style="margin-bottom: 20px">
  161. <div class="tight-form">
  162. <ul class="tight-form-list">
  163. <li class="tight-form-item" style="width: 80px">
  164. <strong>Gauge</strong>
  165. </li>
  166. <li class="tight-form-item">
  167. Show&nbsp;
  168. <input class="cr1" id="panel.gauge.show" type="checkbox"
  169. ng-model="ctrl.panel.gauge.show" ng-checked="ctrl.panel.gauge.show" ng-change="ctrl.render()">
  170. <label for="panel.gauge.show" class="cr1"></label>
  171. </li>
  172. <li class="tight-form-item">
  173. Min
  174. </li>
  175. <li>
  176. <input type="number" class="input-small tight-form-input" ng-model="ctrl.panel.gauge.minValue" ng-blur="ctrl.render()" placeholder="0"></input>
  177. </li>
  178. <li class="tight-form-item last">
  179. Max
  180. </li>
  181. <li>
  182. <input type="number" class="input-small tight-form-input last" ng-model="ctrl.panel.gauge.maxValue" ng-blur="ctrl.render()" placeholder="100"></input>
  183. <span class="alert-state-critical" ng-show="ctrl.invalidGaugeRange">
  184. &nbsp;
  185. <i class="fa fa-warning"></i>
  186. Min value is bigger than max.
  187. </span>
  188. </li>
  189. </ul>
  190. <div class="clearfix"></div>
  191. </div>
  192. <div class="tight-form last">
  193. <li class="tight-form-item">
  194. Threshold labels&nbsp;
  195. <input class="cr1" id="panel.gauge.thresholdLabels" type="checkbox" ng-model="ctrl.panel.gauge.thresholdLabels" ng-checked="ctrl.panel.gauge.thresholdLabels" ng-change="ctrl.render()">
  196. <label for="panel.gauge.thresholdLabels" class="cr1"></label>
  197. </li>
  198. <li class="tight-form-item">
  199. Threshold markers&nbsp;
  200. <input class="cr1" id="panel.gauge.thresholdMarkers" type="checkbox" ng-model="ctrl.panel.gauge.thresholdMarkers" ng-checked="ctrl.panel.gauge.thresholdMarkers" ng-change="ctrl.render()">
  201. <label for="panel.gauge.thresholdMarkers" class="cr1"></label>
  202. </li>
  203. <div class="clearfix"></div>
  204. </div>
  205. </div>
  206. </div>