add categories customization

This commit is contained in:
Simon Vieille
2025-04-13 15:17:56 +02:00
parent 63b32ea40f
commit 89ca510897
5 changed files with 354 additions and 216 deletions
+7 -1
View File
@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
v-model="model"
:multiple="multiple"
>
<option :value="null" v-if="!required"></option>
<option
v-for="option in options"
:key="option.id"
@@ -49,12 +50,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<script setup>
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
const model = defineModel({ type: [Number, String, Array] })
const model = defineModel({ type: [Number, String, Array, null] })
const { options, expanded } = defineProps({
options: {
type: Array,
required: true,
},
required: {
type: Boolean,
required: false,
default: true,
},
expanded: {
type: Boolean,
required: false,