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

384
Views
cómo agregar una clase en fullcalendar

Necesito agregar una clase para días reservados y bloqueados específicos en el calendario completo, necesito resaltar los días reservados y bloqueados con un color diferente. Intente probar con algún código pero no viene correctamente

 $("#calendar").fullCalendar({ header: { left: 'title', center: '', right: 'prev,next' }, selectable: true, events:[ { title: 'Booked', start: '2017-03-11', end: '2017-03-22' }, { title: 'Block', start: '2017-03-28', end: '2017-04-6' } ] });
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Use la función eventRender en sus opciones de calendario completo:

 eventRender: function(event, eventElement) { if (event.title == "Booked") { eventElement.css('background-color', 'green'); } },

o agregue una clase con jquery addClass

 eventElement.addClass('yourClass');

también puede hacer referencia a subelementos si necesita

 eventRender: function(event, eventElement) { if (event.title == "Booked") { eventElement.find("a.fc-content").css('background-color', 'green'); } },
about 4 years ago · Santiago Trujillo Report
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!