Skip to main content

Home > @jsplumb/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#

ParameterTypeDescription
eEvent
doNotPreventDefaultboolean

Returns:

void