Home > @jsplumb/browser-ui > consume
#
consume() functionConsume 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;
#
ParametersParameter | Type | Description |
---|---|---|
e | Event | |
doNotPreventDefault | boolean |
Returns:
void