Calendar

The v-calendar component is used to display information in a daily, weekly, or monthly view. The daily view has slots for all day or timed elements, and the weekly and monthly view has a slot for each day.

사용법

A calendar has a type and a value which determines what type of calendar is shown over what span of time.

API

이름
color
디폴트
undefined
타입
string

컨트롤에 색상을 지정

이름
dark
디폴트
false
타입
boolean

다크 테마를 적용

이름
day-format
디폴트
null
타입
function

Components.Calendars.

이름
end
디폴트
'0000-00-00'
타입
string

Components.Calendars.

이름
first-interval
디폴트
0
타입
number | string

Components.Calendars.

이름
hide-header
디폴트
false
타입
boolean

Components.Calendars.

이름
interval-count
디폴트
24
타입
number | string

Components.Calendars.

이름
interval-format
디폴트
null
타입
function

Components.Calendars.

이름
interval-height
디폴트
40
타입
number | string

Components.Calendars.

이름
interval-minutes
디폴트
60
타입
number | string

Components.Calendars.

이름
interval-style
디폴트
null
타입
function

Components.Calendars.

이름
light
디폴트
false
타입
boolean

라이트 테마를 적용

이름
locale
디폴트
'en-us'
타입
string

Components.Calendars.

이름
max-days
디폴트
7
타입
number

Components.Calendars.

이름
min-weeks
디폴트
1
타입
any

Components.Calendars.

이름
month-format
디폴트
null
타입
function

Components.Calendars.

이름
now
디폴트
undefined
타입
string

Components.Calendars.

이름
short-intervals
디폴트
true
타입
boolean

Components.Calendars.

이름
short-months
디폴트
true
타입
boolean

Components.Calendars.

이름
short-weekdays
디폴트
true
타입
boolean

Components.Calendars.

이름
show-interval-label
디폴트
null
타입
function

Components.Calendars.

이름
show-month-on-first
디폴트
true
타입
boolean

Components.Calendars.

이름
start
디폴트
'2023-03-22'
타입
string

Components.Calendars.

이름
type
디폴트
'month'
타입
string

Components.Calendars.

이름
value
디폴트
undefined
타입
string

표시여부를 조절 (Controls visibility)

이름
weekday-format
디폴트
null
타입
function

Components.Calendars.

이름
weekdays
디폴트
[0,1,2,3,4,5,6]
타입
array

Components.Calendars.

예제

Slots

Slots allow you to define the content for each day, time interval for the daily views, and various labels.

Events

This is an example of an event calendar with type of month. Click on an event to show event details.

Weekly

This is an example of an event calendar with all-day and timed events with a type of week.

Daily

This is an example of calendar with content in each interval slot and a type of day.

Features

This example allows you to explore many of the features of the v-calendar component.

Edit this page | language on Github
Vuetify 3 is now available!The latest version of Vuetify is now available!
Learn about Vuetify 3's new features and functionality for modern Vue applications
Start exploringExplore