好几天 ;
dayClick: function (date, jsEvent, view) {
//return eventCreate(date, null, jsEvent, view);
var CurrentDay = $(this);
CurrentDay.popover({
html: true,
placement: 'auto',
title: date.format(),
container:'#calendar',
content: function() {
setTimeout(function () {
CurrentDay.popover('hide');
}, 2000);
return $("#popover-day").html();
}
});
CurrentDay.popover('toggle');
},
对于事件;
eventRender: function (event, element, view){
var dStart = event.title
element.popover({
animation: true,
placement: 'top',
html: true,
container: 'body',
title: dStart,
trigger: 'click',
content: function() {
setTimeout(function () {
element.popover('hide');
}, 2000);
return $('#popover-content').html();
}
});
},
在您的 HTML 中;
<ul id="popover-content" class="list-group" style="display: none">
<a href="#" id="Eventaaa" class="list-group-item" onclick="aaa();">aaa</a>
<a href="#" id="Eventbbb" class="list-group-item" onclick="bbb();">bbb</a>
<a href="#" id="Eventccc" class="list-group-item" onclick="ccc();">ccc</a>
</ul>
<ul id="popover-day" class="list-group" style="display: none">
<a href="#" id="Dayaaa" class="list-group-item" onclick="fDayaaa();">aaa</a>
<a href="#" id="Dayyyy" class="list-group-item" onclick="fDayyyy();">yyy</a>
<a href="#" id="Dayxxx" class="list-group-item" onclick="fDayxxx();">xxx</a>
</ul>