• Resolved graceyanneiseki

    (@graceyanneiseki)


    Hi! Thank you very much for creating an event calendar that’s actually straight forward and easy to use. Just a quick question. Is there a way that a message like “No events listed for this month” can be displayed on months that do not have events?

    Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author i4nd90

    (@i4nd90)

    Hi there. You can define this in the options of the CLNDR instance like so (as seen in both the pre-packaged instances):

    doneRendering: function() {
    	var thisCLNDR = $(this)[0]["element"];
    	var thisMonthEvents = thisCLNDR.find(".event-item").length;
    	if (thisMonthEvents == 0) {
    		thisCLNDR.find(".event-listing").append(
    			"<div style='text-align:center;' class='event-item'>No events listed</div>"
    		);
    	}
    }

    Ian

    Thread Starter graceyanneiseki

    (@graceyanneiseki)

    Thanks so much, it worked!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“No event listed”’ is closed to new replies.