MenuWidget displays an icon with an optional badge counter, used for notifications or alerts.

app-menu-widget

true

CommonModule, FontAwesomeModule

  • 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.
<app-menu-widget
[icon]="faBell"
iconColor="blue"
[badgeValue]="5"
[showBadge]="true"
></app-menu-widget>

Constructors

Properties

icon: IconDefinition
iconColor: string = 'black'
badgeValue: number
showBadge: boolean = false