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

478
Views
Cómo cambiar la hora de un evento recurrente en fullcalendar 5

Estoy usando fullcalendar 5 y tengo algunos eventos semanales recurrentes en un calendario semanal. Los eventos son inicializados por el backend. Puedo cambiar la hora de esos eventos arrastrando, redimensionando o con código, pero cuando avanzo o retrocedo una semana con los botones Anterior/Siguiente, vuelven a la hora anterior.

¿Hay alguna manera de cambiar un evento recurrente de modo que lo que sea que esté manejando la lógica de repetición lo sepa para que se retenga el nuevo tiempo?

Para cambiar con código, setStart() y setEnd() cambian el evento en la página. Pero entonces anterior/siguiente no retiene el cambio. Comienzo a asignar valores startTime y endTime pero eso no ayudó.

Conseguí que funcionara eliminando el evento y agregando uno nuevo. No sé si hay una solución más elegante.

 let weekDay = '' + myEvent.start.getDay(); let startTime = myEvent.start.toTimeString().split(' ')[0]; let endTime = myEvent.end.toTimeString().split(' ')[0]; let newEvent = { "start" : new Date(myEvent.start), "end" : new Date(myEvent.end), "startTime" : startTime, "endTime" : endTime, "daysOfWeek" : weekDay, "title" : "XYZZY", "id" : "111", }; myEvent.remove(); this.addEvent(newEvent);

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!