We're working with Bryntum Scheduler on an Angular 8 project.
I have a button when i click on this button i want to enter some filter and when i click again on this button i want to remove this filter.
I am trying to add id to my filter but this doesn't work.
This is my filter:
hideEmptyResources = () => {
this.scheduler.schedulerEngine.resourceStore.filter({
id: 'la',
filters: (resource: GanttResource) => {
const events: GanttJob[] = this.scheduler.schedulerEngine.eventStore.getEventsForResource(resource.get('id'));
return events.length !== 0;
},
replace: false
});
}