Nice programing

FullCalendar 헤더 버튼이 없습니다.

nicepro 2020. 12. 13. 11:09
반응형

FullCalendar 헤더 버튼이 없습니다.


나는 fullCalendar 를 아래와 같이 사용 하고 있으며 헤더 섹션을 정의했으며 제목 만 표시하지만 다음, 이전, 월별보기 등 버튼이없는 헤더를 제외한 모든 것이 정상적으로 작동합니다.

'제목'이라는 단어를 제거하면 제목이 제거되어 뭔가를하는 것처럼 보이지만 버튼이 표시되지 않는 이유는 무엇입니까? 내가 뭔가를 놓치고 있습니까? 내 코드는 다음과 같습니다.

jQuery('#calendar').fullCalendar({
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    },
    eventSources:
    [{
        url: url,
        color: '#ffdce5',
        textColor: 'black' 
    }]

})

방금 동일한 문제가 발생한 것으로 의심되는 media="print"것은 fullcalendar.print.css스타일 시트 링크 속성 이 누락되었다는 것 입니다.


Zend Framework를 사용하여 스타일 시트를 추가하는 경우이를 사용하여 media = "print"...를 추가 할 수 있습니다.

$this->view->headLink()->appendStylesheet('/styles/jquery-plugins/fullcalendar.print.css', 'print');

참고 URL : https://stackoverflow.com/questions/25681573/fullcalendar-header-buttons-missing

반응형