Vuetify

ショップ

企業向け

The 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-menu and v-dialog.

The v-click-outside directive allows you to provide a handler to be invoked when the user clicks outside of the target element.

確認したいコンポーネントを下から選び、利用できる props、slots、events、functions を確認してください。

以下に、簡単な例から複雑な例まで示します。

Optionally provide a closeOnOutsideClick handler that returns true or false. This function determines whether the outside click function is invoked or not.

準備はいいですか? 以下から続きが読めます。

Caught a mistake or want to contribute to the documentation? Edit Layout on GitHub!