Home > @jsplumbtoolkit/browser-ui > consume
consume() function
Consume the given event, using stopPropagation()
if present or returnValue
if not, and optionally also calling preventDefault()
.
Signature:
export declare function consume(e: Event, doNotPreventDefault?: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
e | Event | |
doNotPreventDefault | boolean |
Returns:
void