Answer the question
In order to leave comments, you need to log in
Are conditional slots possible?
Goodnight.
I want to render a slot if and only if one of the properties (item in the table) will have child entities (I'm making a tree table). Actually, the problem is that I need to get the data that is transferred to the slot, and based on this data, perform a check. But it doesn't work like that, Vue writes that item is not defined.
<v-data-table>
<template v-if="check(item)" v-slot:item.data-table-expand="{ item }">
<span >test</span>
</template>
</v-data-table>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question