Mientras muevo el cursor en el calendario quiero mostrar la hora. Traté de resolver el problema con viewRender, pero la quinta versión del calendario completo ya no lo admite.
esto es lo que traté de hacer:
viewRender: function(view, element){ $('#calendar').find('.fc-slats').find('[class="fc-widget-content"]').hover( function() { var tr = $(this).parent(); var time = tr.find('td.fc-axis.fc-time.fc-widget-content').find("span").text(); $(this).append('<td class="temp_cell" style="border: 0px; width:5px;">'+time+'</td>'); }, function() { $(this).children('.temp_cell').remove(); } ); }Utilice eventMouseEnter en su lugar. Puedes usar tippyJS para esto:
import tippy from "tippy.js"; ... eventMouseEnter: function (info: any) { let tooltip = tippy(info.el, { content: time, placement: "top", interactive: true, arrow: true, theme: "material", appendTo: document.body, allowHTML: true, duration: [1, 1], animation: "scale-extreme", }});