IClickOutsideBindingArgs

interface
Directives

Object-form argument for the v-click-outside directive. Allows fine-grained control: conditional close logic and a list of elements to treat as "inside".

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

handler
required
(e: MouseEvent) => void
Callback invoked when a pointer-down event lands outside the element.
closeConditional
(e: Event) => boolean
Guard function — when provided, the handler only fires if this returns true.
include
() => Array<HTMLElement>
Factory returning extra DOM elements that should be considered "inside" and therefore not trigger the handler.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Using the object form of v-click-outside

typescript