Hi I am trying to filter the scheduler view. I want to display the selected courses from a drop down view. using the code below, if I supply 1 courseID it works but when I supply multiple id’s it displays all courses.
So I am looping through an array to display each course’s events. Here is the code I am using…
The reason I am creating a new array is because if I use the event_select_filters in the for loop it hangs.
Thanks, Hope this helps someone.
if (event_select_filters.course ) {
let coursesArray = event_select_filters.course;
for (let x = 0; x < coursesArray.length; x++) {
display = false;
if (coursesArray[x] == event.course) {
display = true;
break;
}
}
}