BlogPlaygroundOne

v-click-outside API


Modifiers
boolean

Custom modifier keys that can be used to configure directive behavior.

Value
| ((e: MouseEvent) => void) | { handler: (e: MouseEvent) => void closeConditional: (e: Event) => boolean include: () => HTMLElement[] }

Takes either a function that is invoked when user clicks outside of the element the directive is attached to, or an object containing handler, closeConditional and include callbacks.