API > wxt/browser > Browser > pageAction > setIcon
Function: setIcon()
setIcon(
details,callback?):void
Sets the icon for the page action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
Parameters
▪ details: IconDetails
▪ callback?: () => void
Source
packages/browser/src/gen/index.d.ts:7429
Generated using typedoc-plugin-markdown and TypeDoc