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.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- erequisMouseEvent
- The mouse event to evaluate.
- elrequisHTMLElement
- The root element the directive is bound to.
- bindingrequisIClickOutsideDirectiveBinding
- 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