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

Allow tables to have expandable rows

parent 7c3850b6
No related branches found
No related tags found
1 merge request!1304Refactor calendar overview in more different components
Pipeline #141989 failed
......@@ -38,6 +38,7 @@
@item-selected="handleItemSelected"
@toggle-select-all="handleToggleAll"
@current-items="checkSelectAll"
:show-expand="showExpand"
>
<template #top>
<v-toolbar flat class="height-fit child-height-fit">
......@@ -235,6 +236,12 @@
<v-icon>$deleteContent</v-icon>
</v-btn>
</template>
<template #expanded-item="{ headers, item }">
<td :colspan="headers.length">
<slot name="expanded-item" :item="item" />
</td>
</template>
</v-data-table>
</v-form>
......@@ -493,6 +500,11 @@ export default {
required: false,
default: true,
},
showExpand: {
type: Boolean,
required: false,
default: false,
},
},
methods: {
requestCreate() {
......
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