titleFormat (Properties)

달력 상단(header)/하단(footer) 툴바(Toolbar) 영역에 표시할 타이틀 텍스트의 날짜 포맷을 설정합니다.
Luxon의 포맷 형식을 사용해야 합니다.

Type

object

Options

각 뷰(view)별 기본값은 아래와 같이 설정되어 있습니다.

view Description
month view { year: 'numeric', month: 'long' }
week views { year: 'numeric', month: 'short', day: 'numeric' }
day views { year: 'numeric', month: 'long', day: 'numeric' }

Example

options = {
    titleFormat: {
        year: 'numeric',
        month: 'long',
        day: 'numeric
    }
};

views 옵션을 이용하여 지정한 뷰(View)별로 "titleFormat" 옵션을 설정할 수 있습니다.

options = {
    views: {
        timeGridWeek: {
            titleFormat: "LLLL L, - LLLL L, yyyy"
        }
    }
};

Read More

Since

product version desc
core 1.5.0.0 기능 추가