mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 15:18:20 -05:00
table select box
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
<v-row dense>
|
<v-row dense>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-card :prepend-icon="genericModel.model.icon" :title="$t(genericModel.model.localizationKey)">
|
<v-card :prepend-icon="genericModel.model.icon" :title="$t(genericModel.model.localizationKey)">
|
||||||
@@ -35,7 +36,9 @@
|
|||||||
<v-row>
|
<v-row>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-text-field prepend-inner-icon="$search" :label="$t('Search')" v-model="searchQuery" clearable></v-text-field>
|
<v-text-field prepend-inner-icon="$search" :label="$t('Search')" v-model="searchQuery" clearable></v-text-field>
|
||||||
|
|
||||||
<v-data-table-server
|
<v-data-table-server
|
||||||
|
v-model="selectedItems"
|
||||||
@update:options="loadItems"
|
@update:options="loadItems"
|
||||||
:items="items"
|
:items="items"
|
||||||
:items-length="itemCount"
|
:items-length="itemCount"
|
||||||
@@ -48,6 +51,9 @@
|
|||||||
:items-per-page="useUserPreferenceStore().deviceSettings.general_tableItemsPerPage"
|
:items-per-page="useUserPreferenceStore().deviceSettings.general_tableItemsPerPage"
|
||||||
disable-sort
|
disable-sort
|
||||||
>
|
>
|
||||||
|
<!-- <template v-slot:header.action v-if="selectedItems.length > 0">-->
|
||||||
|
<!-- <v-select density="compact" hide-details></v-select>-->
|
||||||
|
<!-- </template>-->
|
||||||
<template v-slot:item.action="{ item }">
|
<template v-slot:item.action="{ item }">
|
||||||
<v-btn class="float-right" icon="$menu" variant="plain">
|
<v-btn class="float-right" icon="$menu" variant="plain">
|
||||||
<v-icon icon="$menu"></v-icon>
|
<v-icon icon="$menu"></v-icon>
|
||||||
@@ -123,7 +129,9 @@ const itemsPerPageOptions = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
const tablePage = ref(1)
|
const tablePage = ref(1)
|
||||||
const tableShowSelect = ref(false) // TODO enable once mass edit functions are implemented
|
|
||||||
|
const tableShowSelect = ref(true)
|
||||||
|
const selectedItems = ref([] as GenericModel[])
|
||||||
|
|
||||||
// data
|
// data
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user