Created
July 1, 2013 14:49
-
-
Save scottsappen/5901492 to your computer and use it in GitHub Desktop.
Show a week at a glance with full calendar. http://ssbits.wordpress.com/category/javascript-snippets/calendar/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Just change the defaultView attribute for the calendar you are rendering | |
$("#cal_viewcalendarweekataglance").fullCalendar({ | |
theme: true, | |
events: "SomeWebPage.aspx", | |
cache: true, | |
height: 160, | |
defaultView: 'basicWeek', | |
eventRender: function (event, element) { | |
element.find('span.fc-event-title').html(element.find('span.fc-event-title').text()); | |
}, | |
eventMouseover: function (event, element, view) { | |
$(this).css('border', '3px dashed #c70000'); | |
}, | |
eventMouseout: function (event, element, view) { | |
$(this).css('border', '0px'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment