Skip to main content

Interface: IMyopComponentProxy

Defined in: src/MyopComponent.tsx:95

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

Properties

dispose()

dispose: () => void

Defined in: src/MyopComponent.tsx:109

Dispose the component

Returns

void


element

element: IElementProxy

Defined in: src/MyopComponent.tsx:106

Element proxy for DOM manipulation


hide()

hide: () => void

Defined in: src/MyopComponent.tsx:112

Hide the component

Returns

void


id

id: string

Defined in: src/MyopComponent.tsx:97

Component ID


inspect()

inspect: () => void

Defined in: src/MyopComponent.tsx:118

Inspect the component (debug)

Returns

void


props

props: object

Defined in: src/MyopComponent.tsx:100

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:115

Show the component

Returns

void