Add docs about highlighted counter

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2018-05-02 15:41:29 +02:00
parent 749522020d
commit fb26cb4bac
2 changed files with 14 additions and 1 deletions

View File

@@ -226,7 +226,7 @@ Do not change the alignment of the text. If you're using
<li class="app-navigation-entry-utils-counter">1</li>
The count should be limitted to 999 and turn to 999+ if any higher number is given. If AngularJS is used the following filter can be used to get the correct behavior:
The counter should be limited to 999 and turn to 999+ if any higher number is given. If AngularJS is used the following filter can be used to get the correct behavior:
.. code-block:: js
@@ -246,6 +246,19 @@ Use it like this:
<li class="app-navigation-entry-utils-counter">{{ count | counterFormatter }}</li>
Highlighted counter
"""""""""""""""""""
The counter can also be highlighted to attract some focus, e.g. for unread chat messages
.. figure:: ../images/navigation-counter-highlighted.png
:alt: Navigation entry with highlighted counter
:figclass: figure-with-code
.. code-block:: html
<li class="app-navigation-entry-utils-counter"><span class="highlighted">1</span></li>
.. _navigation_buttons:
Buttons

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB