diff options
-rw-r--r-- | templates/project/dashboards/sample.erb | 2 | ||||
-rw-r--r-- | templates/project/widgets/meter/meter.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb index 8269b7e..08c3b51 100644 --- a/templates/project/dashboards/sample.erb +++ b/templates/project/dashboards/sample.erb @@ -6,7 +6,7 @@ </li> <li data-row="1" data-col="1" data-sizex="1" data-sizey="1"> - <div data-id="synergy" data-view="Meter" data-title="Synergy" data-height="200" data-width="200" data-min="0" data-max="100"></div> + <div data-id="synergy" data-view="Meter" data-title="Synergy" data-height="200" data-width="200" data-min="0" data-max="100" data-suffix="%"></div> </li> <li data-row="1" data-col="1" data-sizex="1" data-sizey="2"> diff --git a/templates/project/widgets/meter/meter.html b/templates/project/widgets/meter/meter.html index d2b8c22..72592fb 100644 --- a/templates/project/widgets/meter/meter.html +++ b/templates/project/widgets/meter/meter.html @@ -1,6 +1,6 @@ <h1 class="title" data-bind="title"></h1> -<input class="meter" data-angleOffset=-125 data-angleArc=250 data-bind-data-height="height | default 200" data-bind-data-width="width | default 200" data-readOnly=true data-bind-value="value | shortenedNumber" data-bind-data-min="min" data-bind-data-max="max"> +<input class="meter" data-angleOffset=-125 data-angleArc=250 data-bind-data-height="height | default 200" data-bind-data-width="width | default 200" data-readOnly=true data-bind-value="value | shortenedNumber | prepend prefix | append suffix" data-bind-data-min="min" data-bind-data-max="max"> <p class="more-info" data-bind="moreinfo"></p> |