Components
BaseDataTableMenuPanel
The shared frame of the table menus: activator, title, close button and the reset, cancel and apply footer.
components/ui/table/BaseDataTableMenuPanel.vue
View in the demo
Internal part
This is an internal part of BaseDataTable. The columns, filters and group menus are built on it, so they look and behave the same. Use it if you add another table menu.
Example
The default activator is a button with the title, the icon and a badge with count; pass #activator for another control, as the columns menu does. Menu sizes (width, min-width, max-width) go straight to BaseMenu.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
titlerequired | string | — | The title of the menu and of the default activator. |
close-labelrequired | string | — | The aria-label of the close button. |
icon | string | — | The icon of the default activator. |
count | number | 0 | The number on the badge of the default activator; 0 hides it. |
reset-disabled | boolean | false | Disables the reset button. |
v-model | boolean | false | Whether the menu is open. |
Slots
Name | Slot props | Description |
|---|---|---|
#activator | { props: any; } | Replaces the default activator; receives the menu props. |
#default | — | The content of the menu. |
Events
Name | Payload | Description |
|---|---|---|
@update:modelValue | [value: boolean] | — |
@reset | — | The reset button was clicked. |
@apply | — | The apply button was clicked. |