I'm using Fullcalendar for displaying event booking. I disabled all previous dates to avoid new booking on old dates. But unfortunately, the previous events are not showing on the disabled dates. What I want to achieve is that show all the events irrespective of previous or upcoming, but disable the click option on previous dates to avoid adding events on old dates.
o.$calendarObj = o.$calendar.fullCalendar({
slotDuration: "00:15:00",
minTime: "08:00:00",
maxTime: "19:00:00",
defaultView: "month",
handleWindowResize: !0,
height: e(window).height() - 100,
header: {
left: "prev,next today",
center: "title",
right: "month,agendaWeek,agendaDay"
},
events: event_list,
editable: 0,
droppable: 0,
eventLimit: !0,
validRange: {
start: new Date(e.now())
},
selectable: !0,
eventClick: function(e, t, n) {
o.onEventDetailsClick(e, t, n)
},
dayClick: function(date, jsEvent, view, resourceObj) {
alert('Add New Event' );
}
})
Aucun commentaire:
Enregistrer un commentaire