I tried units for multiple days and my scheduler should ignore Monday and friday , but when I use scheduler.ignore{_my_unit_multidayview} the calendar becomes messy.
This is my code :
includes :
JS :
scheduler.createUnitsView({
name:“msa_unit”,
property:“unit_id”,
list:[
{key:1, label:“Catty”},
{key:2, label:“Nadine”},
{key:3, label:“Martin”}
],
days :5,
});
/NOT WORKING/
scheduler.ignore_msa_unit = function(date){
if (date.getDay() == 1 || date.getDay() == 0) //hides Monday and Sundays
return true;
};
/* WORK */
scheduler.ignore_week = function(date){
if (date.getDay() == 1 || date.getDay() == 0) //hides Monday and Sundays
return true;
};
scheduler.init(‘scheduler_here’, new Date(),“msa_unit”);
scheduler.load(“http://laramsa.localhost.dev/c…”,“json”,function(){
console.log(“Chargement Terminé …”);
});