Open matsbryntse opened 1 month ago
Refactor/simplify demo: http://lh/bryntum-suite/scheduler/examples/filtering/
onChange({ value }) { scheduler.eventStore.forEach(task => { const taskClassList = new DomClassList(task.cls); if (value !== '' && task.name.toLowerCase().includes(value.toLowerCase())) { taskClassList.add('b-match'); } else { taskClassList.remove('b-match'); } task.cls = taskClassList.value; }); scheduler.element.classList[value.length > 0 ? 'add' : 'remove']('b-highlighting'); }
Refactor/simplify demo: http://lh/bryntum-suite/scheduler/examples/filtering/