BlogPlaygroundOne

VDatePickerControls API


Props
name
type
default
string | string[]
undefined

Controls the active state of the item. This is typically used to highlight the component.

string | number
undefined

Sets the height of the controls.

'docked' | 'modal'
'docked'
  • docked: Separate control groups for month and year.
  • modal: Month and year are displayed together, clicking the text opens a month picker, clicking the dropdown arrow opens a year picker. There are also arrow buttons to scroll between months.
string | boolean | string[]
null

Removes the ability to click or target the component.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
'$subgroup'

Icon used for the mode button.

string
undefined

Text displayed for the current month.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
'$next'

Icon used for the next button.

boolean
false

Only applies to controlVariant="modal", the month and year picker buttons are combined into one that only opens the year picker.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
'$prev'

Icon used for the previous button.

string
undefined

Specify content text for the component.

'month' | 'year' | 'months'
'month'

Sets the view mode of the date picker.

string
undefined

Text displayed for the current year.

Events
name
type
[]

Event fired when clicking on the month.

[]

Event fired when clicking the next button.

[]

Event fired when clicking the next year button.

[]

Event fired when clicking the previous button.

[]

Event fired when clicking the previous year button.

[]

Event fired when clicking the date text.

Slots
{ viewMode: 'month' | 'year' | 'months' monthYearText: string monthText: string yearText: string disabled: string[] openMonths: () => void openYears: () => void prevMonth: () => void nextMonth: () => void prevYear: () => void nextYear: () => void }

The default Vue slot.