popup for full calendar in jquery

前端 未结 7 767
一生所求
一生所求 2021-01-01 04:10

I need to show a popup (balloon popup as in google calendar) while creating an event in the jquery full calendar.

Any best plugins for the popup which shows as ballo

7条回答
  •  悲&欢浪女
    2021-01-01 04:25

    Here is my implementation. i did this on hover, bt if you want click, just change the event handler

    $('#calendario').fullCalendar({
    
    
    
                            events: "/includes/json-events.php",
    
                            eventDrop: function(event, delta) {
                                alert(event.title + ' was moved ' + delta + ' days\n' +
                                    '(should probably update your database)');
                            },
    
                            loading: function(bool) {
                                if (bool) $('#loading').show();
                                else $('#loading').hide();
                            },
                            eventMouseover: function( event, jsEvent, view ) { 
                                var item = $(this);
                                if(item.find('.nube').length == 0){
                                    var info = '

    '+event.title+'

    '+event.name+'

    '+event.start+'
    '+event.end+'

    read_more

    '; item.append(info); } if(parseInt(item.css('top')) <= 200){ item.find('.nube').css({'top': 20,'bottom':'auto'}); item.parent().find('.fc-event').addClass('z0'); } item.find('.nube').stop(true,true).fadeIn(); }, eventMouseout: function( event, jsEvent, view ) { var item = $(this); item.find('.nube').stop(true,true).fadeOut(); }, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, eventRender: function(event, element) { } });

    and, at least:

    .nube{ position: absolute;left:0;top:0}
    

提交回复
热议问题