Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Establecer eventos dentro de la devolución de llamada de viewrender

Así que tengo este calendario. Puedes ver a continuación. Cuando la página se carga por primera vez, relleno la propiedad de 'eventos' del calendario que funciona bien. Tengo un problema con la actualización de la propiedad 'eventos' dentro de la devolución de llamada del evento 'viewrender'. Es eso posible.

Estoy usando fullcalender versión 3.9.

Probé dentro del viewrender para configurar .... this.setevents. Pero no parece funcionar

 $("#request_calender").fullCalendar({ eventOverlap: true, selectable: true, views: { listDay: { buttonText: 'Custom View', }, agendaWeek: { columnFormat: 'ddd D/M' } }, slotLabelFormat: 'H:mm', customButtons: { toggleWeekends: { text: 'show weekends', click: function() { toggleWeekends(); }, } }, header: { left: "prev,next today toggleWeekends unBooked", center: "title", right: "agendaDay,agendaWeek,month,listWeek" }, weekends: false, weekNumbers: true, defaultView: 'agendaWeek', select: function(startDate, endDate) { start_date = startDate.format(); end_date = endDate.format(); new_request(start_date, end_date); }, events: calender_array, timeFormat: 'H(:mm)', eventRender: function(e, t) { //some code here }, eventClick: function(event, jsEvent, view) { console.log("event:", event); request_id = event['request_id']; request_details(request_id); }, viewRender: function(view, element) { //HERE I WANT TO GET DATA VIA A API AND PUSH TO EVENTS if (view.name == 'listDay') { showCustomView(); } } });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!