首页 > 解决方案 > 如何为 fullcalendar 3.9 / bootstrap 4 的事件添加工具提示

问题描述

我在我的 Laravel 8 / jQuery 3.5.1 / bootstrap 4.5.3 应用程序中使用 fullcalendar 3.9.0 我想在方法中为事件项的标题添加工具提示

eventRender: function (eventInfo, element, view) {
    ...

    

在引导工具提示中添加了道具:

<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="right" title="" data-original-title="Tooltip on right">Right</button>

我想知道是否有办法将属性 data-toggle、data-placement、data-original-title 分配给事件元素,它在控制台中有输出:https ://prnt.sc/wjndg3

如果是,如何?

谢谢

标签: javascripttwitter-bootstrapfullcalendarfullcalendar-3

解决方案


推荐阅读