copysIf

open fun copysIf(selector: ClipboardEvent.() -> Boolean): Listener<ClipboardEvent, T>

occurs when the user copies the content of an element

Return

a Listener that emits ClipboardEvents on its Flow

Parameters

selector

expression to evaluate, which specific event should be emitted to the Flow. It is also possible and encouraged to manipulate the event dispatching by calling stopPropagation or similar DOM-API.