Skip to main content

Interface: IMyopComponentProxy

Defined in: src/MyopComponent.tsx:138

Proxy interface for window.myopComponent in WebView Mirrors the IMyopComponent interface from @myop/sdk

Properties

dispose()

dispose: () => void

Defined in: src/MyopComponent.tsx:152

Dispose the component

Returns

void


element

element: IElementProxy

Defined in: src/MyopComponent.tsx:149

Element proxy for DOM manipulation


hide()

hide: () => void

Defined in: src/MyopComponent.tsx:155

Hide the component

Returns

void


id

id: string

Defined in: src/MyopComponent.tsx:140

Component ID


inspect()

inspect: () => void

Defined in: src/MyopComponent.tsx:161

Inspect the component (debug)

Returns

void


props

props: object

Defined in: src/MyopComponent.tsx:143

Props object with myop_init_interface and myop_cta_handler

myop_cta_handler

myop_cta_handler: null | (action, payload?) => void

myop_init_interface()

myop_init_interface: (data) => void

Parameters
data

any

Returns

void


show()

show: () => void

Defined in: src/MyopComponent.tsx:158

Show the component

Returns

void