Back to Electron

MenuItemBadge Object

docs/api/structures/menu-item-badge.md

44.0.0804 B
Original Source

MenuItemBadge Object

  • type string (optional) - Can be alerts, updates, new-items or none. Default is none. See Creating badges of a specific type for further explanation of these types.
  • count number (optional) - The number of items the badge displays. Required for the alerts, updates and new-items types; cannot be used with none.
  • content string (optional) - A custom string to display in the badge. Required for, and only usable with, the none type.

If you use one of the predefined badge types (not none), the system localizes and pluralizes the badge for you. If you create your own custom badge string, you need to localize and pluralize that string yourself.