vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Feature Request] Slot for group in VTreeview

Open jelle-eastground opened this issue 6 months ago • 4 comments

Problem to solve

In VTreeview there seems no way to customize a group using the slots, because only a slot for an item is available.

Proposed solution

It would be great if a group slot with props is exposed in VTreeview, to be able to do the following:

<template>
  <v-treeview>
    <!-- missing: -->
    <template v-slot:group="{ props }">
      <v-treeview-group v-bind="props"/>
    </template>

    <!-- already available: -->
    <template v-slot:item="{ props }">
      <v-treeview-item v-bind="props"/>
    </template>
  </v-treeview>
</template>

Could this group slot be added? I think this issue is related.

jelle-eastground avatar Aug 07 '24 11:08 jelle-eastground