v-model | Binding value |
Date
| — | — |
date-formatter | Function to format date to a string for display in the input |
Function
| — | (date) => date.toLocaleDateString() |
date-parser | Function to parse string to a date for set a date from the input to the component |
Function
| — | (date) => new Date(Date.parse(date)) |
date-creator | Function used internally to create a new Date instance |
Function
| — | () => new Date() |
min-date | Earliest date available for selection |
Date
| — | — |
max-date | Latest date available for selection |
Date
| — | — |
events | Dates to display indicators |
Array
| — | — |
indicators | Shape to use when showing event indicators |
String
| dots , bars | dots |
focused-date | Date that should be initially focused upon |
Date
| — | new Date() |
size | Vertical size of input and picker, optional |
String
| is-small , is-medium , is-large | — |
inline | Datepicker is shown inline, input is removed |
Boolean
| — | false |
editable | Enable input/typing. Note that you might have to set a custom date parser |
Boolean
| — | false |
loading | Add the loading state to the input |
Boolean
| — | false |
icon | Icon name to be added |
String
| — | — |
icon-pack | Icon pack to use |
String
| mdi , fa , fas , far , fad , fal | mdi |
icon-prev | Icon to use for previous month |
String
| — | chevron-left |
icon-next | Icon to use for next month |
String
| — | chevron-right |
unselectable-dates | Array of unselectable dates |
Array
| — | - |
unselectable-days-of-week | Array of unselectable days of week |
Array
| 0 - 6 (Sunday is 0, Monday is 1, and so on) | - |
selectable-dates | Array of selectable dates |
Array
| — | - |
month-names | Names of months to display in table header |
Array
| — | ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] |
day-names | Names of days to display in table header |
Array
| — | ["Su", "M", "Tu", "W", "Th", "F", "S"] |
first-day-of-week | First day of week to display in table header |
Number
| 0 - 6 (Sunday is 0, Monday is 1, and so on) | 0 |
mobile-native | Enable native datepicker on mobile |
Boolean
| true , false | true |
position | Optional, position of the datepicker relative to the input |
String
| is-top-right , is-top-left , is-bottom-left | Bottom right |
open-on-focus | Open datepicker on input focus |
Boolean
| — | false |
type | Type of picker |
String
| month | - |
years-range | Years range relative to selected year |
Array
| - | [-100, 3] |
nearby-month-days | Show/Hide nearby month days (prev and next month) |
Boolean
| - | true |
nearby-selectable-month-days | When nearby-month-days , it allows to select/unselect nearby month days |
Boolean
| - | false |
show-week-number | Display week number |
Boolean
| - | false |
rules-for-first-week | Choose the rule to determinate the first week of Year, 4 for ISO or 1 for other |
Number
| - | 4 |
range | Flag to allow choosing a range of date |
Boolean
| — | false |
multiple | Flag to allow choosing multiple dates |
Boolean
| — | false |
focusable | Datepicker container can be focused |
Boolean
| — | true |
Any native attribute | — |
—
| — | — |