问题
fullcalenar
does not have much documentation for Angular
.
Installing the rrulePlugin
does not work as I asked in the previous question :
Angular 9: Cannot find namespace 'FullCalendarVDom'?
this solution does not work either:
import { RRule } from 'rrule';
renderEvents(obj) {
const rrule = new RRule({
freq: RRule.WEEKLY,
interval: 1,
byweekday: [RRule.FR],
dtstart: obj.dtstart as Date,
until: obj.until as Date
});
events = {
title: ...
rrule: rrule
}
}
as the events are rendered only once and the rrule
object is ignored.
What is the solution? Is it even possible to use rrule
in Angular
?
来源:https://stackoverflow.com/questions/63115857/how-to-install-and-use-rrule-for-fullcalendar-in-angular