API > wxt/browser > Browser > browserAction > setBadgeText
Function: setBadgeText()
setBadgeText(details)
setBadgeText(
details):Promise<void>
Sets the badge text for the browser action. The badge is displayed on top of the icon.
Parameters
▪ details: BadgeTextDetails
Returns
The setBadgeText method provides its result via callback or returned as a Promise (MV3 only). It has no parameters.
Source
packages/browser/src/gen/index.d.ts:1096
setBadgeText(details, callback)
setBadgeText(
details,callback):void
Sets the badge text for the browser action. The badge is displayed on top of the icon.
Parameters
▪ details: BadgeTextDetails
▪ callback: () => void
Supported since Chrome 67
Source
packages/browser/src/gen/index.d.ts:1101
Generated using typedoc-plugin-markdown and TypeDoc