BlogPlaygroundOne

VDatePickerYears API


Props
name
type
default
number[] | ((date: number) => boolean)
undefined

Restricts which years can be selected.

string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

string | number
undefined

Sets the height for the component.

unknown
undefined

Sets the maximum date of the month.

unknown
undefined

Sets the minimum date of the month.

number
undefined

The v-model value of the component. If component supports the multiple prop, this defaults to an empty array.

Events
name
type
[number]

Event that is emitted when the component’s model changes.

Slots
{ year: { text: string; value: number } i: number props: { active: boolean color: string rounded: boolean text: string variant: 'text' | 'flat' onClick: () => void } }

Slot for the year.