search

Home  >  Q&A  >  body text

javascript - 我想说,用fullcalendar和bootstrap这两个东西能实现这个效果么?

如图,单独的模态框好弹,但是这种“点哪从哪弹出”的弹出框就麻烦了。

自己找到了答案:

            eventRender: function(event, element) {
            console.log(event);
            console.log(element);
            element.popover({
                 title: event.title,
                 placement: 'right',
                 html: true,
                 trigger: 'click',
                 container: 'body',
                 content: '<p></p>',
             });
        } 
大家讲道理大家讲道理2901 days ago372

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-10 14:30:44

    你可以获取鼠标点击时坐标,然后根据你想要的bootstrap模态框宽高来控制它的位置就行了

    reply
    0
  • Cancelreply