0
How to do that when typing a text in the input Fullcalendar.js it filters the content. I’ve tried the eventRender more not succeeded.
document.addEventListener("DOMContentLoaded", function() {
var calendarEl = document.getElementById("calendar");
let calendar = new FullCalendar.Calendar(calendarEl, {
locale: "pt-br",
plugins: ["interaction", "dayGrid", "timeGrid", "list"],
header: {
left: "prev,next",
center: "title",
right: "dayGridMonth,timeGridWeek,timeGridDay"
},
customRender: true,
editable: false,
navLinks: true,
eventLimit: true,
timeZone: "UTC",
events: {
url: "json/events.json",
failure: function() {
}
},
eventDataTransform: function(eventData) {
return {
title: eventData.diaSemana,
start: eventData.dataAssembleia
};
},
eventClick: function(eventData) {
eventData.el.style.borderColor = "red";
alert("O Evento é: " + eventData.event.title);
}
});
calendar.render();
});
<input type="text" id="numero" placeholder="Nome do Evento" />
<div id="calendar"></div>
In this filter you will reload the data from the server ? or you want to filter the events that are already set in Callendar ?
– Alisson Marqui
Type when the person type diaSemana only appear in the calendar what they want
– Anderson de Freitas Migloranza