Public API Reference
Myop components expose exactly two global functions on the window object. These functions form the communication contract between the component and its host application.
Overview​
| Function | Direction | Purpose |
|---|---|---|
myop_init_interface | Host → Component | Initialize component with data |
myop_cta_handler | Component → Host | Send user actions to host |
myop_init_interface​
Purpose​
Initialize or update the component with data from the host application.