From 4300707e1157fee48e77539355dd77d638e8f0f8 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 25 Jul 2024 14:44:08 +0200 Subject: [PATCH] fix(NcListItem): allow to pass custom NcActions component via scoped slot Signed-off-by: Maksim Sukharev --- src/components/NcListItem/NcListItem.vue | 69 ++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 5 deletions(-) diff --git a/src/components/NcListItem/NcListItem.vue b/src/components/NcListItem/NcListItem.vue index 897eed4a1c..76e39f4faa 100644 --- a/src/components/NcListItem/NcListItem.vue +++ b/src/components/NcListItem/NcListItem.vue @@ -268,6 +268,58 @@ ``` +### NcListItem with `custom-actions` slot + +If there is a need to heavily customize the actions menu, the `custom-actions` slot can be used to pass the NcActions component. +Remember to pass `primary`, `aria-label` and `update-open` props from the scoped slot props to ensure full functionality. +```js static + +``` +```vue + + +``` ### NcListItem compact mode ```vue