Description

Calls function when a click event occurs outside of the element. Good for closing side panels, menus, etc.

Usage

as attribute
<ANY click-outside="{expression}"
     [outside-if-not="{string}"]>
   ...
</ANY>

Parameters

ParamTypeDetails
click-outsideexpressionFunction to call when element is clicked outside of.
outside-if-not (optional)stringSelector to match any elements that should not trigger the click-outside function