directive
Commons
stable
Click-outside handler invoked on each document click event. Calls the bound handler when the last mousedown was outside the element and the binding passes the active check. Internal helper for v-click-outside.
API
Signature
Signature TypeScript complète, extraite du fichier util.
This is a low-level internal helper. Prefer the v-click-outside directive in application code.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- erequisMouseEvent
- The click MouseEvent fired on the document.
- elrequisHTMLElement
- The element the directive is bound to.
- bindingrequisIClickOutsideDirectiveBinding
- The Vue directive binding. Its value is either the handler function or an object { handler, closeConditional }.
API
Valeur de retour
La valeur retournée par cet util.
- Returns nothing. Invokes the bound handler as a side-effect when the outside-click condition is met.
Usage
Exemples
Extraits de code prêts à coller.
Used internally by v-click-outside