Useful features with Full Calendar

The Full Calendar I posted earlier accepts JSON objects as events. A couple of notes.

1. Formatting HTML that comes back with the return JSON feed. When setting up your calendar object, you can define some methods.

        eventRender: function (event, element) {
            element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());
        },

2. Changing the border of an event for mouse events.

        eventMouseover: function (event, element, view) {
            $(this).css('border', '3px dashed #c70000');
        },
        eventMouseout: function (event, element, view) {
            $(this).css('border', '0px');
        },
Advertisements
Previous Post
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: