Answer the question
In order to leave comments, you need to log in
Vuetify multi-select with 3-level categorization?
Good afternoon, you need to make a MULTIPLE selection through vuetify v-select
with categorization.
What is now:
categories: [
{
name: 'Домашний текстиль',
subcategories: [
{
name: 'Постельное белье',
subcategories: [
{
name: 'Комплекты постельного белья'
},
{
name: 'Отдельные предметы постельного белья'
}
]
},
{
name: 'Кухонный текстиль',
subcategories: [
{
name: 'Полотенца кухонные'
},
{
name: 'Прихватки для кухни'
},
{
name: 'Фартуки, аксессуары'
}
]
}
]
},
{
name: 'Бытовая техника',
subcategories: [
{
name: 'Техника для кухни',
subcategories: [
{
name: 'Чайники'
},
{
name: 'Весы кухонные'
}
]
},
{
name: 'Техника для дома',
subcategories: [
{
name: 'Пылесосы'
},
{
name: 'Техника по уходу за одеждой'
},
{
name: 'Утюги'
}
]
}
]
}
],
v-select(
flat
solo
multiply
v-model="selectedCaterogies"
:items="categories"
label="Выберите категории"
hide-details
single-line
)
template(#item="{ item, tile }")
v-list(subhead)
v-subheader {{ item.name }}
v-list-tile(v-for="subitem in item.subcategories")
v-list-tile-content
v-list(subhead)
v-subheader {{ subitem.name }}
v-list-tile(v-for="subsubitem in subitem.subcategories")
v-list-tile-content {{ subsubitem.name }}
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