Skip to content
Snippets Groups Projects
Commit c094c718 authored by Julian's avatar Julian
Browse files

Pass attrs and event listeners for subject chip to the base v-chip

parent 7fc180b4
Branches attrs-and-listeners-in-subject-chip
No related tags found
1 merge request!35Pass attrs and event listeners for subject chip to the base v-chip
Pipeline #186207 failed
<script>
export default {
name: "SubjectChip",
extends: "v-chip",
props: {
subject: {
type: Object,
......@@ -21,7 +22,12 @@ export default {
</script>
<template>
<v-chip :color="subject.colourBg" :text-color="subject.colourFg">
<v-chip
v-bind="$attrs"
v-on="$listeners"
:color="subject.colourBg"
:text-color="subject.colourFg"
>
{{ shortName ? subject.shortName : subject.name }}
<v-icon right v-if="appendIcon">{{ appendIcon }}</v-icon>
</v-chip>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment