checkIsActive

Commons
stable

Evaluates the closeConditional guard of a v-click-outside directive binding. Returns true when the directive is currently active, undefined when no guard is provided.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

e
required
MouseEvent
The mouse event passed to the conditional guard.
binding
required
IClickOutsideDirectiveBinding
The v-click-outside directive binding, optionally carrying a closeConditional function.

API

Return value

The value returned by this util.

The result of the closeConditional function, or true when none is supplied.

Usage

Examples

Ready-to-paste usage snippets.

Guard check inside a directive handler

typescript