checkEvent

Commons
stable

Determines whether a MouseEvent occurred outside the bound element and its included elements, honouring ShadowRoot boundaries. Used internally by the v-click-outside directive.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

e
requis
MouseEvent
The mouse event to evaluate.
el
requis
HTMLElement
The root element the directive is bound to.
binding
requis
IClickOutsideDirectiveBinding
The directive binding object, which may include a handler callback, a closeConditional guard, and an include list of additional elements.

API

Valeur de retour

La valeur retournée par cet util.

true when the event is a genuine outside click that should trigger the handler; false otherwise.

Usage

Exemples

Extraits de code prêts à coller.

Used by the v-click-outside directive

typescript