on Event
fun WebApp.onEvent(type: EventType, eventHandler: EventHandler): () -> Unit
Content copied to clipboard
fun WebApp.onEvent(type: EventType.ViewportChanged, eventHandler: ViewportChangedEventHandler): (ViewportChangedData) -> Unit
Content copied to clipboard
fun WebApp.onEvent(type: EventType.InvoiceClosed, eventHandler: InvoiceClosedEventHandler): (InvoiceClosedInfo) -> Unit
Content copied to clipboard
Return
The callback which should be used in case you want to turn off events handling