Interface: IMyopComponent<P, R>
Defined in: host/components/IMyopComponent.ts:55
Type Parameters
• P = any
• R = any
Properties
componentDefinition
componentDefinition:
IComponentDefinitionConfig
Defined in: host/components/IMyopComponent.ts:65
container
container:
HTMLElement
Defined in: host/components/IMyopComponent.ts:67
dispose()
dispose: () =>
void
Defined in: host/components/IMyopComponent.ts:83
Returns
void
element?
optionalelement:HTMLElement
Defined in: host/components/IMyopComponent.ts:70
id
id:
string
Defined in: host/components/IMyopComponent.ts:57
initiated()
initiated: () =>
Promise<any>
Defined in: host/components/IMyopComponent.ts:81
Returns
Promise<any>
isInitiated
isInitiated:
boolean
Defined in: host/components/IMyopComponent.ts:59
markedForDisposed
markedForDisposed:
boolean
Defined in: host/components/IMyopComponent.ts:61
observeAutoSize()?
optionalobserveAutoSize: (options?) =>CleanupHandler
Defined in: host/components/IMyopComponent.ts:97
Observes the iframe content size and automatically syncs it to the iframe element. Only available for iframe-based components. Uses direct contentDocument access.
Parameters
options?
Configuration options including size change callback and min/max constraints
Returns
Cleanup function to stop observing
onMessageReceived()
onMessageReceived: (
msg) =>boolean
Defined in: host/components/IMyopComponent.ts:79
Parameters
msg
Returns
boolean
parent?
optionalparent:IMyopComponent
Defined in: host/components/IMyopComponent.ts:99
props
props:
P
Defined in: host/components/IMyopComponent.ts:101
refs
refs:
R
Defined in: host/components/IMyopComponent.ts:103
send()
send: (
msg) =>CleanupHandler
Defined in: host/components/IMyopComponent.ts:72
Parameters
msg
Returns
setInitiated()
setInitiated: () =>
void
Defined in: host/components/IMyopComponent.ts:63
Returns
void
Methods
bind()
Call Signature
bind(
messageType,handler):void
Defined in: host/components/IMyopComponent.ts:74
Parameters
messageType
MyopMessageKey
handler
() => boolean
Returns
void
Call Signature
bind<
T>(messageType,handler):void
Defined in: host/components/IMyopComponent.ts:76
Type Parameters
• T extends BaseMyopMessage
Parameters
messageType
MyopMessageKey
handler
(message) => boolean
Returns
void
hide()
hide():
void
Defined in: host/components/IMyopComponent.ts:85
Returns
void
inspect()
inspect():
void
Defined in: host/components/IMyopComponent.ts:89
Returns
void
show()
show():
void
Defined in: host/components/IMyopComponent.ts:87
Returns
void