Skip to main content
A widget tells your page what happened inside it, for example that a restaurant saved a template or sent a campaign. Use the events to update your own UI.

Example

mountWidget keeps only the messages of its own iframe and calls onEvent({ widget, type, data }). Without the SDK, listen to message events yourself and accept only those from https://api.minimo.it with source: 'minimo-widget'.

All events

Every message is { source: 'minimo-widget', widget, type, data }, posted only to your allowed origins. Events are a convenience for your UI. To know the real state from your backend, use the API (tenant profile, rules, statistics, message list).

Next step

Automatic messages widget