Skip to content

Commit

Permalink
fix(NcListItem): allow to control the display of a three dot menu
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
  • Loading branch information
DorraJaouad committed Aug 19, 2024
1 parent f6ca078 commit d55b8db
Showing 1 changed file with 10 additions and 0 deletions.
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

Check failure on line 676 in src/components/NcListItem/NcListItem.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Trailing spaces not allowed
*/
forceMenu: {
type: Boolean,
default: false,
},

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

0 comments on commit d55b8db

Please sign in to comment.