contextmenusIf

open fun contextmenusIf(selector: MouseEvent.() -> Boolean): Listener<MouseEvent, T>

occurs when the user right-clicks on an element to open a context menu

Return

a Listener that emits MouseEvents 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.