summaryrefslogtreecommitdiff
path: root/src/components/_sila/Global/Collapse.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/_sila/Global/Collapse.vue')
-rw-r--r--src/components/_sila/Global/Collapse.vue8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/_sila/Global/Collapse.vue b/src/components/_sila/Global/Collapse.vue
index 4a3694bd..d5076d77 100644
--- a/src/components/_sila/Global/Collapse.vue
+++ b/src/components/_sila/Global/Collapse.vue
@@ -4,6 +4,7 @@
v-b-toggle="id"
variant="collapse"
class="d-flex flex-nowrap justify-content-start"
+ @click="onClick"
>
<slot name="image"></slot>
{{ title }}
@@ -31,8 +32,15 @@ export default {
},
data() {
return {
+ opened: false,
iconChevronUp: iconChevronUp,
};
},
+ methods: {
+ onClick() {
+ this.opened = !this.opened;
+ this.$emit('opened', this.opened);
+ },
+ },
};
</script>