ButtonMenu
Dropdown menu activated from a button.
import { ButtonMenu } from '@atlas/ui';
<ButtonMenu :items="items" @action="onAction" />
| Name |
Type |
Default |
Description |
items |
MenuItem[] |
— |
Menu items with label, icon, action, disabled, optional children, and tooltip. |
icon |
string |
'pi pi-ellipsis-v' |
Icon class for the default trigger. |
ptData |
Record<string, any> |
{} |
Additional data forwarded with the action event. |
onHover |
boolean |
false |
Show menu on hover instead of click. |
pt |
ButtonMenuPassThroughOptions |
— |
Pass-through styling options. |
| Name |
Description |
trigger |
Custom trigger element. Slot props: { toggleMenu, triggerRef }. |
| Name |
Payload |
Description |
action |
(action: any, ptData: Record<string, any>) |
Emitted when an item is selected. |
Refer to the PrimeVue Menu API for menu item options.