Skip to content

Commit a1b14ec

Browse files
committed
Added suffix option for number widget
Added an option to append a suffix to the number in the number widget. Done in the same was as prepend. Useful for things like percentage (eg. 10%).
1 parent 98f326e commit a1b14ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/project/widgets/number/number.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 class="title" data-bind="title"></h1>
22

3-
<h2 class="value" data-bind="current | shortenedNumber | prepend prefix"></h2>
3+
<h2 class="value" data-bind="current | shortenedNumber | prepend prefix | append suffix"></h2>
44

55
<p class="change-rate">
66
<i data-bind-class="arrow"></i><span data-bind="difference"></span>

0 commit comments

Comments
 (0)