You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The v-slot:selection slot in VSelect is currently limited to customizing individual selected items. If we need to change how to display selection for the entire state, it's currently possible only using a workaround.
For instance: showing a single label when all items are selected. If we were to implement this feature in our current v-select:selection slot, we'd have to resort to:
Enhance VSelect with a slot or prop for overriding the entire selection template. This would allow to easily define a custom template using v-slot:selection-display and use this to override the entire selection display, providing access to the full itemsSelected array.
Example:
3dyuval
changed the title
[Feature Request] Using VSelect v-slot:selection to override the entire selection output instead of a single selection property
[Feature Request] Using VSelect v-slot:selection-display to override the entire selection output instead of a single selection property
Dec 8, 2024
3dyuval
changed the title
[Feature Request] Using VSelect v-slot:selection-display to override the entire selection output instead of a single selection property
[Feature Request] Using VSelect v-slot:selection-display to override the entire selection output
Dec 8, 2024
Problem to solve
The
v-slot:selection
slot inVSelect
is currently limited to customizing individual selected items. If we need to change how to display selection for the entire state, it's currently possible only using a workaround.For instance: showing a single label when all items are selected. If we were to implement this feature in our current
v-select:selection
slot, we'd have to resort to:Proposed solution
Enhance
VSelect
with aslot
orprop
for overriding the entire selection template. This would allow to easily define a custom template usingv-slot:selection-display
and use this to override the entire selection display, providing access to the full itemsSelected array.Example:
The text was updated successfully, but these errors were encountered: