MenuWidget displays an icon with an optional badge counter, used for notifications or alerts.
app-menu-widget
true
CommonModule, FontAwesomeModule
icon
iconColor
badgeValue
showBadge
<app-menu-widget [icon]="faBell" iconColor="blue" [badgeValue]="5" [showBadge]="true"></app-menu-widget> Copy
<app-menu-widget [icon]="faBell" iconColor="blue" [badgeValue]="5" [showBadge]="true"></app-menu-widget>
MenuWidget displays an icon with an optional badge counter, used for notifications or alerts.
Selector
app-menu-widget
Standalone
true
Imports
CommonModule, FontAwesomeModule
Inputs
icon
(IconDefinition): FontAwesome icon to display.iconColor
(string): Color of the icon. Default is 'black'.badgeValue
(number): The numeric value displayed within the badge.showBadge
(boolean): Controls the visibility of the badge. Default is false.Example