J’ai un calendrier simple mis en place à via pickadate.js. Comment puis-je désactiver chaque dimanche du calendrier? J’ai remarqué qu’il était disable:[]
en place mais je ne savais pas comment spécifier un jour
$('.datepicker').pickadate({ weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], showMonthsShort: true })
Documents dit
//Using integers representing days of the week (from 1 to 7): $('.datepicker').pickadate({ disable: [ 1, 4, 7 ] })
donc si vous voulez désactiver dimanche alors:
$('.datepicker').pickadate({ weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], showMonthsShort: true, disable: [7] });