Components
BaseMenuOptions
A menu with a list of options that can run actions, navigate or keep a selection.
components/ui/BaseMenuOptions.vue
View in the demo
Single selection
Multiple selection with checkboxes
multiple keeps an array and checkbox shows a checkbox per option. Combined with dotColor it is the label filter of the kanban and the calendar.
design
Options have the same shape as in BaseMenuButton.
API
It also accepts every prop, slot and event of v-menu, which it passes through.
Props
Name | Type | Default | Description |
|---|---|---|---|
options | BaseMenuOption[] | — | The options, dividers and subheaders. |
selected | unknown | — | The selected value, or an array with multiple. Use v-model:selected. |
mandatory | boolean | — | Prevents clearing the selection. |
multiple | boolean | — | Allows selecting several options. |
checkbox | boolean | — | Shows a checkbox for each option. |
compact | boolean | — | Tighter rows. |
Slots
Name | Slot props | Description |
|---|---|---|
#header | — | Content above the options. |
#footer | — | Content below the options. |
Events
Name | Payload | Description |
|---|---|---|
@selected | [value: unknown] | Fires with the new selection when the user picks an option. |
@update:selected | [value: unknown] | The new selection. |