Skip to content

Commit 86b6adb

Browse files
committed
feat(NcChip): allow to define the actions container
If the component is used within a container this allow to also limit the actions popover to that container. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 0acf7b5 commit 86b6adb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/NcChip/NcChip.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export default {
9393
</span>
9494
<NcActions v-if="canClose || hasActions()"
9595
class="nc-chip__actions"
96+
:container="actionsContainer"
9697
:force-menu="!canClose"
9798
variant="tertiary-no-background">
9899
<NcActionButton v-if="canClose"
@@ -129,7 +130,15 @@ const props = defineProps({
129130
},
130131
131132
/**
132-
* Main text of the chip
133+
* Container for the actions
134+
*/
135+
actionsContainer: {
136+
type: String,
137+
default: 'body'
138+
},
139+
140+
/**
141+
* Main text of the chip.
133142
*/
134143
text: {
135144
type: String,

0 commit comments

Comments
 (0)