beforeUnmount

fun <T : Element> Tag<T>.beforeUnmount(payload: Any? = null, handler: DomLifecycleHandler)

Convenience method to register lifecycle handler for before a Tag is unmounted

Parameters

<receiver>

the Tag to register the lifecycle handler for

handler

DomLifecycleHandler to be called on this Tag before it is removed from the DOM

payload

optional payload the handler requires