Skip to content

Commit

Permalink
feat(#89): add popover group prop for group filters (#148)
Browse files Browse the repository at this point in the history
* feat(#93): add popover group prop

* feat(#89): implement popover group
  • Loading branch information
Decipher authored Sep 12, 2024
1 parent 3d77163 commit e5482a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/GroupFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
type="horizontal"
>
<template #default="{ item }">
<CTPopover :trigger="item.name">
<CTPopover :trigger="item.name" group="group-filters">
<slot :name="`filter-${item.id}`">
<!-- @TODO - default filter? -->
</slot>
Expand Down
6 changes: 5 additions & 1 deletion src/components/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:class="`ct-popover ${themeClass}`"
data-collapsible="1"
data-collapsible-collapsed=""
data-collapsible-group=""
:data-collapsible-group="group"
data-collapsible-duration="250"
>
<a
Expand Down Expand Up @@ -39,6 +39,10 @@ export default {
mixins: [ThemeMixin],
props: {
group: {
type: String,
default: undefined
},
tag: {
type: String,
validator: (value) => ['div', 'span'].includes(value),
Expand Down

0 comments on commit e5482a7

Please sign in to comment.