I am currently workingon a calendar in my angular v8 application.
This is the plugin I use: https://fullcalendar.io
this is the component which I include in my html template:
<full-calendar
defaultView="dayGridMonth"
[editable]="true"
[eventLimit]="5"
[nowIndicator]="true"
[slotLabelFormat]="timeFormat"
[eventTimeFormat]="timeFormat"
[eventClassName]="'fc-event-brand'"
[minTime]="'08:00:00'"
[maxTime]="'24:00:00'"
[header]="{
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth, timeGridWeek, timeGridDay, listWeek'
}"
[plugins]="calendarPlugins"
[events]="calendarEvents"
(eventMouseEnter)="showPopover($event)"
(eventMouseLeave)="hidePopover($event)"
(eventRender)="renderTooltip($event)"></full-calendar>
But how can I add a ngBootstrap popover to an element?
this is the renderTooltip():
renderTooltip(event) {
// bind ngBootstrap tooltip or popover to $event.el
}
Hope someone can help me out render the popover or tooltip to the events on the calendar.
from how to programmatically add ngBootstrap popover to element?
No comments:
Post a Comment