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.
API
Parameters
Input parameters accepted by this util.
- erequiredMouseEvent
- The mouse event passed to the conditional guard.
- bindingrequiredIClickOutsideDirectiveBinding
- 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