I seem to be getting this error when I include the module in my application.
Error: ./node_modules/@bryntum/calendar-angular/fesm2015/bryntum-calendar-angular.js 65:10-28
"export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core'
Do you have print feature enabled? It will only be available if the print feature is enabled.
And scrollEventIntoView is not a calendar method; it's a scheduler method, so it is an invalid calendar method.
Enabling print feature does not work either: Object literal may only specify known properties, and 'features' does not exist in type 'BryntumCalendarProps'.ts(2353)
/**
* Application config file
*/
import { BryntumCalendarProps } from '@bryntum/calendar-angular';
export const calendarProps : BryntumCalendarProps = {
eventTooltipFeature : {
align : 'l-r'
},
date : new Date(2020, 9, 11),
// Modes are the views available in the Calendar.
// An object is used to configure the view.
modes : {
year : false
},
// Features named by the properties are included.
// An object is used to configure the feature.
features : {
print : true,
eventTooltip : {
// Configuration options are passed on to the tooltip instance
// We want the tooltip's left edge aligned to the right edge of the event if possible.
align : 'l-r'
}
}
};
For the scrollTo method, it is indeed part of the CalendarMixin and should be available on the calendar instance. Ensure that your calendar instance is correctly initialized and that you are calling scrollTo on the correct object.
If you continue to face issues, please provide more details or code snippets showing how you are initializing and using the calendar component.