제목이없는 위젯 크기의 캘린더를 클릭 할 수있는 아주 작은 버전의 FullCalendar (또는 이와 비슷한)를 누군가에게 알려주고, 클릭 할 수있는 이벤트가있는 날짜의 색칠 된 블록 만 알려주 길 바란다. . 나는 위대한 WordPress의 사이트에서 fullcalendar를 사용하지만, 거기에 모든 구글 캘린더 위젯 정말 빨아!작은 버전의 fullcalendar
19
A
답변
55
약간의 CSS를 추가하여 완전한 기능을 갖춘 작은 버전을 만들 수 있습니다. 제목 속성에 이벤트 이름을 추가하기 위해 "eventMouseover"콜백을 추가해야했습니다. 따라서 툴팁에서 이름을 볼 수 있습니다.
다음은 미니 크기의 캘린더 (200 x 225)와 demo의 스크린 샷입니다.
CSS의
#calendar {
width: 200px;
margin: 0 auto;
font-size: 10px;
}
.fc-header-title h2 {
font-size: .9em;
white-space: normal !important;
}
.fc-view-month .fc-event, .fc-view-agendaWeek .fc-event {
font-size: 0;
overflow: hidden;
height: 2px;
}
.fc-view-agendaWeek .fc-event-vert {
font-size: 0;
overflow: hidden;
width: 2px !important;
}
.fc-agenda-axis {
width: 20px !important;
font-size: .7em;
}
.fc-button-content {
padding: 0;
}
자바 스크립트
$(document).ready(function() {
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
// add event name to title attribute on mouseover
eventMouseover: function(event, jsEvent, view) {
if (view.name !== 'agendaDay') {
$(jsEvent.target).attr('title', event.title);
}
}
});
});
업데이트 : 제 주도 수평 작은 이벤트 및 모든 이벤트가 넓거나 그것을 만들기 위해 높은 2 픽셀했다 그 (것)들에 공중 선회하게 쉬운.
업데이트 V2.4 + 대신 위의 답을 업데이트하는, 난 그냥 FullCalendar의 V2.4 작은 (demo)
CSS
#calendar {
width: 200px;
margin: 0 auto;
font-size: 10px;
}
.fc-toolbar {
font-size: .9em;
}
.fc-toolbar h2 {
font-size: 12px;
white-space: normal !important;
}
/* click +2 more for popup */
.fc-more-cell a {
display: block;
width: 85%;
margin: 1px auto 0 auto;
border-radius: 3px;
background: grey;
color: transparent;
overflow: hidden;
height: 4px;
}
.fc-more-popover {
width: 100px;
}
.fc-view-month .fc-event, .fc-view-agendaWeek .fc-event, .fc-content {
font-size: 0;
overflow: hidden;
height: 2px;
}
.fc-view-agendaWeek .fc-event-vert {
font-size: 0;
overflow: hidden;
width: 2px !important;
}
.fc-agenda-axis {
width: 20px !important;
font-size: .7em;
}
.fc-button-content {
padding: 0;
}
를 만들기 위해 사용되는 수정 된 코드를 게시합니다
자바 스크립트
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
eventAfterRender: function() {
// add titles to "+# more links"
$('.fc-more-cell a').each(function() {
this.title = this.textContent;
});
},
// add event name to title attribute on mouseover
eventMouseover: function (event, jsEvent, view) {
if (view.name !== 'agendaDay') {
$(jsEvent.target).attr('title', event.title);
}
},
editable: true,
eventLimit: true // allow "more" link when too many events
});
});
관련 문제
- 1. fullcalendar - 범위
- 2. fullcalendar 행을
- 3. RefetchEvents FullCalendar
- 4. JQuery와 FullCalendar
- 5. 자정까지 펼치는 Fullcalendar 이벤트 선택? jQuery를 함께 fullcalendar 사용
- 6. FullCalendar - 아약스를 통해보기 보내기
- 7. jQuery fullCalendar 및 qTip
- 8. MVC에서 FullCalendar 이벤트 채우기
- 9. Yahoo! 파이프와 Fullcalendar
- 10. FullCalendar 일별 이벤트
- 11. Fullcalendar on IPhone
- 12. Fullcalendar refetchEvents probem
- 13. fullCalendar 및 대화 문제
- 14. FullCalendar dayClick 기능
- 15. fullCalendar 글꼴 크기
- 16. FullCalendar v1.4.11의 토요일 숨기기
- 17. fullCalendar - 색상 옵션이있는 addEventSource
- 18. 아약스를 통한 fullcalendar 설정
- 19. Google 일정과 Fullcalendar 동기화
- 20. Fullcalendar 내 데이터베이스에 묶기
- 21. JQuery fullCalendar removeEvents
- 22. FullCalendar 맞춤 헤더 제목
- 23. fullCalendar/ASP.Net/jQuery 1.5
- 24. FullCalendar 및 이벤트 : function
- 25. Fullcalendar, 월법 호출 방법?
- 26. Fullcalendar 이벤트 추가
- 27. 근무 시간 fullcalendar [솔루션]
- 28. Fullcalendar 이벤트 렌더링
- 29. fullcalendar 이벤트에 컨텐츠 추가
- 30. FullCalendar 이벤트 날짜에 경고
안녕하세요이 중대하다. 고맙습니다. 그러나 FullCalenar 2.0에서는 완전히 작동하지 않는 것 같습니다. 셀이 크게 (세로로) 렌더링됩니다. 이 문제를 해결하는 방법을 알고 있습니까? – Dave
안녕하세요 @Dave! 내 대답을 업데이트했습니다. - [새로운 데모] (http://jsfiddle.net/Mottie/G6K6Y/1482/) - 변경 사항은 "+2 추가"링크에 제목과 회색 배경을 추가하고 팝업을 줄입니다. 최대 크기. – Mottie
이것은 매끄 럽습니다. 공유해 주셔서 감사합니다. – KTU