我正在将 ng full-calendar 集成到我的项目中,它正确显示在屏幕下方。 日历视图
下面是我的 .ts 文件代码。
export class OfcalendarComponent implements OnInit {
calendarOptions: Options;
displayEvent: any;
@ViewChild(CalendarComponent) ucCalendar: CalendarComponent;
constructor() { }
ngOnInit() {
this.calendarOptions = {
editable: true,
eventLimit: false,
header: {
left: 'prev,next today',
center: 'title',
right: 'month'
},
selectable: true,
events: [
{
title : 'event1',
start : '2018-06-08',
rendering: 'background'
}
],
};
}
现在我想添加点击事件来选择多个日期并将事件设置为那些选定的日期,但是在完整的日历文档中,他们已经给出了所有 jquery 方法。有谁帮助我如何在 .ts 文件中集成角度项目?