开发者

jquery Full calendar and shadowbox

开发者 https://www.devze.com 2023-02-10 19:51 出处:网络
How to call a shadow box in full calendar.. 开发者_开发问答assuming I do have an event and when the user(client browser) click on that event it will call the shadow box or light box... any idea would

How to call a shadow box in full calendar.. 开发者_开发问答assuming I do have an event and when the user(client browser) click on that event it will call the shadow box or light box... any idea would help.. thanks


Override the eventClick callback and open the shadow/lightbox with that events data.

Here's a contrived example:

$('#calendar').fullCalendar({
    eventClick: function(event, jsEvent, view) {
        Shadowbox.open({
            content: '<div id="event-msg">Welcome to event #' + event.id + '!</div>',
            player: 'html',
            title: 'My Event'
        });
    }
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号