customButtons (Properties)

상단(header)/하단(footer) 툴바(Toolbar) 영역에 표시할 사용자 정의 버튼을 설정합니다.
"text" 와 "icon"을 동시에 설정 할 수 없습니다.

Type

object

Options

Value Description
"text" 버튼에 보여질 문자
"icon" 버튼에 보여질 아이콘

icon 으로 설정할 수 있는 값

Value Description
"chevron-left" "<" 모양의 아이콘
"chevron-right" ">" 모양의 아이콘
"chevrons-left" "<<" 모양의 아이콘
"chevrons-right" ">>" 모양의 아이콘

Example

options = {
    customButtons: {
        initialDate: {
            text: "초기날짜"
        },
        myCustomButton: {
            icon: "chevron-left",  // "chevron-right" || "chevrons-left" || "chevrons-right"
        }
    },
    headerToolbar: {
        left: "initialDate",
        center: "title",
        right: "myCustomButton"
    }
};

Since

product version desc
core 1.5.0.0 기능 추가