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
Currently it is only possible to define a strict string as the label of a v-date-field, through its label prop.
In my team's case, this is a problem, because we need to have a label in black with a red star symbol (*) on the right, to convey its requirement.
This problem would be solved with the addition of a #label slot just like v-text-field.
In the end, we'd like to be able to write something like this :
@johnleider unfortunately your changes in 4815d05 did not fix the issue. It looks like there is still no label slot.
Does this need to be configured in VDateInputSlots? Could something like this
export type VDateInputSlots = Omit<VInputSlots & VFieldSlots, 'default'> & {
actions: VDateInputActionsSlot
default: never
}
work here? This is essentially what the VTextField does but adapted to the slots of the VDateInput component
It works, just the types are broken. Fixed in d32fa31
Problem to solve
Unable to set a custom label for a VDateInput, however other inputs like VTextField do support custom label slots
Proposed solution
Add the label slot to the VDateInput component
The text was updated successfully, but these errors were encountered: