Skip to content

A jquery plugin like utility to hook with arshaw's Full calendar to limit number of events and show a more button which shows all the events of that day in popup. Currently works only with Month view.

License

Notifications You must be signed in to change notification settings

waqarkhan88/fullCalendar.limitEventsHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fullCalendar.limitEventsHook

A jquery plugin like utility to hook with arshaw's Full calendar to limit number of events and show a more button which shows all the events of that day in popup. Currently works only with Month view.

Sample:

var myEventHook = new limitEventsHook({

	eventsLimit: 3,
	clickHandler: function(dayCell, eventsList) {
		var dialogBox = $("<div></div>");
		var eventsListUI = $("<ul></ul>");
		$(eventsList).each(function() {
			eventsListUI.append($("<li></li>").text(this.title));
		});
		$(dialogBox).append(eventsListUI);
		$(dialogBox).attr("title", "Events list for " + $(dayCell).data("date"));
		$(dialogBox).dialog({
			height: 300,
			width: 400,
			modal: true
		});
	}
});

$('#calendar').fullCalendar({
	editable: true,
	events: 'someurl',
	viewRender: myEventHook.hookByViewRender
});

About

A jquery plugin like utility to hook with arshaw's Full calendar to limit number of events and show a more button which shows all the events of that day in popup. Currently works only with Month view.

Resources

License

Stars

Watchers

Forks

Packages

No packages published