【发布时间】:2021-03-24 13:11:05
【问题描述】:
我正在研究 fullcalendar-angular 组件,其中我有一个名为 filter 的自定义按钮,单击它时,modal/dialog/menu-items 应该像下拉菜单一样打开。那么我们如何在customButton点击功能下实现呢?有没有办法添加 HTML 以及如何添加?如图所示。
calendarOptions:CalendarOptions = {
initialView:'dayGridMonth',
themeSystem:'bootstrap',
nowIndicator:true,
//showNonCurrentDates:false,
fixedWeekCount:false,
customButtons:{
myCustomBtton: {
bootstrapFontAwesome:'fas fa-sliders-h',
click: function(click,element){
//how do i add the code here`enter code here`
},
},
},
headerToolbar:{
left:'prev,next today',
center:'title',
right:'dayGridMonth,dayGridWeek,dayGridDay,listMonth myCustomBtton'
},
【问题讨论】: