Clickoutside stable

The v-clickoutside directive allows to run callback on click out of element.

Example

<v-button
  appearance="primary"
  v-clickoutside="handleClickoutside"
>
  Click me or miss
</v-button>
1
2
3
4
5
6
export default {
  methods: {
    handleClickoutside() {
      alert('You clicked outside the button!');
    },
  },
};
1
2
3
4
5
6
7

Arguments

Name type Description
main Function Callback that will be executed on clickoutside