我正在我的 Angular 7 应用程序中实现 fullCalendar,日历正在工作,我正在向它导入一些事件,但我试图让它更有效,我试图只带来日历需要的事件。
所以..我有一些问题。
如何在 Prev 或 Next 或 Today 按钮中获取点击事件?
如何获取当前日期?
我一直在检查文档...但是只有 jquery 的示例...
在这里我复制我的 HTML
<full-calendar id="calendar" *ngIf="options" #fullcalendar [editable]="true" [events]="citas"
[header]="options.header" [locale]="options.locale" [customButtons]="options.customButtons"
(dateClick)="dateClick($event)" [plugins]="options.plugins" (eventClick)="eventClick($event)" [eventLimit]="4">
</full-calendar>
还有我的 T
@ViewChild('fullcalendar') fullcalendar: FullCalendarComponent;
constructor() {
this.options = {
editable: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth, listDay'
},
plugins: [dayGridPlugin, listPlugin, timeGridPlugin],
locale: esLocale,
};
}