| Issue 260: | Different views | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Just so you know, I love this addon! Great work! We are using this plugin to keep track of our game events. On the main calendar page we have the full calendar, but on the home page I'd like to have both or either of these calendar views: 1) Mini calendar that shows a tooltip with event information when hovered over a date. 2) A "This Week" or "Next Week" view of the monthly calendar (example screenshot included). I tried hiding the table rows using jQuery, but sadly since the events are not contained within each date cell, the first week events are displayed in the modified view (the event showing in the screenshot was scheduled for Sat Dec 5). And upon resizing, the events disappear completely.
Dec 23, 2009
#1
wowmo...@gmail.com
Dec 30, 2009
the mini-calendar might be a more complicated issue, but for the "this week" and "next week" views you wanted, have you looked at the basicWeek view? (in the ZIP download, in the examples folder, run "basic-views.html" and click "week"). this might work, especially if you make the "height" property small, would look like your example. is this what you're looking for? thanks
Jan 5, 2010
Hi adamrshaw. Ok I tried your solution to show "this week" and "next week" and I've
run into two problems.
1) The calendar starts as already rendered, I wanted to switch it to basicWeek view.
So using this bit of code works:
$('.fc').fullCalendar('changeView','basicWeek');
but I wanted to adjust the aspect ratio as well, but using this bit of code doesn't work:
$('.fc').fullCalendar({'changeView':'basicWeek'});
2) I could get the calendar into basic week view using the code above, but I couldn't
adjust the height property. Maybe I couldn't find it in the documentation, but I did
try adjusting the aspect ratio with no change in the week cell size because it is
based on the monthly calendar size. I only want the week view to show, so disabling
or removing the month and day view buttons would be fine.
Jan 19, 2010
you can only call `changeView` as a method *after* the calendar has initialized. try
something like this (which utilizes defaultView):
$('#calendar').fullCalendar({
defaultView: 'basicWeek'
aspectRatio: 1.5
});
please let me know if [http://arshaw.com/fullcalendar/docs/display/aspectRatio/
aspectRatio] is not working, it should.
Feb 6, 2010
(No comment was entered for this change.)
Status:
Done
|
|
| ► Sign in to add a comment |