I want to show tooltip on hover an event in Fullcalendar plugin, but i want to show subevent only in the tooltip order by index.
If my json is like this:
[{
"title":"event A,
"start":"2020-07-29",
"end":"2020-07-29",
"extendedProps":{"subevent":"sub 1","subevent":"sub 2","subevent":"sub 3"},
}, {
"title":"event B,
"start":"2020-07-30",
"end":"2020-07-30",
"extendedProps":{"subevent":"sub 4","subevent":"sub 5"}]
and this is my eventMouseEnter:
eventMouseEnter: function(info) {
var tis=info.el;
var popup=info.event.extendedProps;
var tooltip = '<div class="tooltipevent" style="top:'+($(tis).offset().top-5)+'px;left:'+
($(tis).offset().left+($(tis).width())/2)+'px"><div>Name ' + popup.title + '</div><div>sub event ' + popup.subevent + '</div></div>';
var $tooltip = $(tooltip).appendTo('body');
}
How to show my sub event dynamically like this? example picture
Thank You.
Best Regards,
Eka
'); console.log(str); } Thank You so much for your help. – Eka Jul 14 '20 at 00:15