-
Notifications
You must be signed in to change notification settings - Fork 133
Platform: Counter Component Technical Design
manjunathanagaraj edited this page Mar 13, 2020
·
4 revisions
The counter is used to identify the count of a set of objects.
<fdp-counter count="99" label="Number of apples"></fdp-counter>
<fdp-counter count="99" label="Number of apples" isNotification="true"></fdp-counter>
Number to display.
Text used for aria-label.
Toggles whether to display counter in "notification" mode.
<span class="fd-counter"
[attr.aria-label]="label"
[ngClass]="{'fd-counter--notification': isNotification}">{{count | counterFormatter }}</span>
counterFormatter
is a pipe function which formats thes display of count. Depending on size of number, the display may need to be altered. For example a count of "12,000" may need to be shortend to "999+" or "12k".
#Notes: Manju: Fiori3, under notifications, has following components - badge, icon, iconandbadge,banner, group(expand/collapse). Event binding is required.