How to install and use RRule for Fullcalendar in Angular?

烂漫一生 提交于 2021-01-29 05:40:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!