mirror of
https://github.com/directus/directus.git
synced 2026-02-17 22:41:28 -05:00
* Change large/x-large sizes * Force update to popper on content change * Use smaller size avatar in module bar * Make the readme up to date * Add support for trigger / delay props on v-menu * Add user-popover component, use in comments drawer detail * Add loading state to user popoer * Fix trigger target in comments drawer etail item header
Menu
Renders a dropdown menu. Can be attached to an activator element or free floating.
NOTE
Due to the fact that a menu is rendered through a portal, dialogs don't work great when rendered from within a menu. If you ever find yourself doing this:
Props
| Prop | Description | Default |
|---|---|---|
placement |
Where to position the popper. | bottom |
value |
Value to control menu active state | undefined |
close-on-click |
Close the menu when clicking outside of the menu | true |
close-on-content-click |
Close the menu when clicking the content of the menu | false |
attached |
Attach the menu to an input | false |
show-arrow |
Show an arrow pointer | false |
disabled |
Menu does not appear | false |
trigger |
Activate the menu on a trigger. One of manual, click, hover |
null |
delay |
Time in ms before menu activates after trigger | 0 |
Slots
| Slot | Description | Data |
|---|---|---|
| default | Menu content | |
| activator | Activator element. Attaches click and mouse enter/leave handlers on wrapper element |