Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(NcListItem): allow to control the display of a three dot menu #5980

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ The `actions-icon` slot can be used to pass icon to the inner NcActions componen
@focusout="handleBlur">
<NcActions ref="actions"
:primary="isActive || active"
:force-menu="forceMenu"
:aria-label="computedActionsAriaLabel"
@update:open="handleActionsUpdateOpen">
<template v-if="$slots['actions-icon']" #icon>
Expand Down Expand Up @@ -670,6 +671,15 @@ export default {
type: Boolean,
default: false,
},

/**
* Force the actions to display in a three dot menu
*/
forceMenu: {
type: Boolean,
default: false,
},

/**
* Show the list component layout
*/
Expand Down
Loading