v-click-outside directive calls a function when something outside of the target element is clicked on. This is used internally by components like
v-click-outside directive allows you to provide a handler to be invoked when the user clicks outside of the target element.
Optionally provide a
closeConditional handler that returns
false. This function determines whether the outside click function is invoked or not.
Optionally provide an
include function in the
options object that returns an array of
HTMLElements. This function determines which additional elements that the click must be outside of, for the handler to be called.