Skip to content

API > wxt/client > IframeContentScriptUi

Interface: IframeContentScriptUi<TMounted>

Contents

Extends

Type parameters

TMounted

Properties

autoMount

autoMount: (options?) => void

Call ui.autoMount() to automatically mount and remove the UI as the anchor is dynamically added/removed by the webpage.

Parameters

options?: AutoMountOptions

Inherited from

ContentScriptUi.autoMount

Source

packages/wxt/src/client/content-scripts/ui/types.ts:225


iframe

iframe: HTMLIFrameElement

The iframe added to the DOM.

Source

packages/wxt/src/client/content-scripts/ui/types.ts:14


mount

mount: () => void

Function that mounts or remounts the UI on the page.

Inherited from

ContentScriptUi.mount

Source

packages/wxt/src/client/content-scripts/ui/types.ts:213


mounted

mounted: undefined | TMounted

Inherited from

ContentScriptUi.mounted

Source

packages/wxt/src/client/content-scripts/ui/types.ts:40


remove

remove: () => void

Function that removes the UI from the webpage.

Inherited from

ContentScriptUi.remove

Source

packages/wxt/src/client/content-scripts/ui/types.ts:218


wrapper

wrapper: HTMLDivElement

A wrapper div that assists in positioning.

Source

packages/wxt/src/client/content-scripts/ui/types.ts:18


Generated using typedoc-plugin-markdown and TypeDoc