Badges are highlighted text elements which are used to tag or highlight the state of an object.
<fdp-badge status="default">Label</fdp-badge> <fdp-badge status="success">Label</fdp-badge> <fdp-badge status="warning">Label</fdp-badge> <fdp-badge status="error">Label</fdp-badge> <fdp-badge isPill="true">Label</fdp-badge> <fdp-badge isFilled="true">Label</fdp-badge> <fdp-badge status="success" isPill="true" isFilled="true">Label</span>
status: StatusType
Sets the color of the label text. Can have status value of 'default', 'success', 'warning' or 'error'.
Default: 'default'
isPill: Boolean
Sets whether to display badge as a 'pill'.
isFilled: Boolean
Sets whether to fill background of badge.
type StatusType = 'default' | 'success' | 'warning' | 'error';
<span class="fd-badge" [ngClass]="[ statusClass, isPill ? 'fd-badge--pill': '', isFilled ? 'fd-badge--filled': '' ]"><ng-content></ng-content></span>
statusClass is a CSS class name auto-generated based on value of property status.
statusClass
status
##Notes: @Manju: Fiori3 notifications has following types - badge/icon, banner, groups. Need to relook the design
There was an error while loading. Please reload this page.