Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

55
Vistas
Pikday enable days that are disabled by weekdays

I wonder if there is a simple solution to activate some faction days in the pikaday datepicker.

I blocked all Tuesdays Wednesdays, Thursdays and Sundays with date.getDate. However, I do not want to block 5 vacation days if they fall on Tues, Wed, Thurs or Sundays, they will also be blocked. Can I include an exception in the javascript?

I understand that with jquery and moment there is a solution just like creating an array in php and removing these dates and then presenting them. With that, the advantage of a date picker of only 5k is gone.

I like php but javascript is not my thing.

Does anyone see a solution ?

disableDayFn: function (date) { return date.getDay() === 0 || date.getDay() === 2 || date.getDay() === 3 || date.getDay() === 4 ; }
7 months 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 empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.