Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

240
Vistas
Change multiple Fullcalender Day Cell Backgrounds from external Data specified in Database Table

Im trying to change the fullcalendar (v3) day cell background-color for specific days declared in a databse table. So far i was able to try it with manual input for only one day which works fine with the following code:

        dayRender: function (date, cell) {
            
            var day_declared_in_database = '2022-05-13';
            
            var specific_day = moment('' + day_declared_in_database + 'T00:00Z');
            if (date.isSame(specific_day, "day")) {
                cell.css("background-color", "blue");
            }
        },

Any idea how to get external data into dayRender and loop through all days to apply the color to multiple different days?

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda