ショップ

企業向け

v-menuコンポーネントは、アクティブにするために使用される要素の位置にメニューを表示します。

メニューをアクティブにする要素を activatorスロットに忘れずに配置してください。

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

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

Menus can also be placed absolutely on top of the activator element using the absolute prop. Try clicking anywhere on the image.

Menus can be accessed using hover instead of clicking with the open-on-hover prop.

Vuetify comes with 3 standard transitions, scale, slide-x and slide-y. You can also create your own and pass it as the transition argument. For an example of how the stock transitions are constructed, visit here.

メニューを無効にできます。無効なメニューは開くことができません。

Menu can be offset by the X axis to make the activator visible.

Menu can be offset by the Y axis to make the activator visible.

Menu can be closed when lost focus.

You can configure whether v-menu should be closed when its content is clicked.

Menus can also be used without an activator by using absolute together with the props position-x and position-y. Try right-clicking anywhere on the image.

A menu can be configured to be static when opened, allowing it to function as a popover. This can be useful when there are multiple interactive items within the menu contents.

By default, v-menu components are detached and moved to the root of your application. In order to properly support inserting dynamic content into the DOM, you must use the attach prop. This will ensure that focus transfers from the activator to the content when pressing the tab key.

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

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