I'm trying to customize ResourceAllocationInfo class and even without any methods override it's throwing an error.
import {
ResourceAllocationInfo,
} from "@bryntum/schedulerpro/schedulerpro.umd";
import { ProjectModel,} from "@bryntum/gantt/gantt.umd";
class CustomResourceAllocationInfo extends ResourceAllocationInfo {}
function createProject() {
/**
* @type Partial<ProjectModelConfig>
*/
const props = {
calendar: "DefaultCompanyCalendar",
hoursPerDay: 8,
daysPerWeek: 5,
daysPerMonth: 20,
calendarsData: resourcesAndCalendarsData.calendars,
calendarManagerStore: { useRawData: true },
enableProgressNotifications: true,
taskStore: { useRawData: true },
assignmentStore: { useRawData: true },
dependencyStore: { useRawData: true },
tasksData: data.tasks,
resourceStore: { useRawData: true },
resourcesData,
dependenciesData: data.bryntumDependencies,
assignmentsData: data.bryntumAssignments,
resourceAllocationInfoClass: CustomResourceAllocationInfo,
};
return new ProjectModel(props);
}
And error is
some more debugging showed that effect.handler is undefined for custom class
Maybe you have some ideas.