{{selectedEvent?.title}}
{{selectedEvent?.description}}
selectedEvent: any;
eventClick(event: any) {
this.selectedEvent = event.event;
this.tooltipService.open();
}
import {NgbTooltip, NgbTooltipService} from '@ng-bootstrap/ng-bootstrap';
constructor(private tooltipService: NgbTooltipService) {}
完成以上步骤后,当用户在 full calendar 中选择一个事件时,选定事件的详细信息将会显示在一个提示框中。