Angular 完整日历自定义按钮未定义

Angular 完整日历自定义按钮未定义,angular,fullcalendar,angular8,fullcalendar-scheduler,Angular,Fullcalendar,Angular8,Fullcalendar Scheduler,我已经尝试创建一个完整的日历与引导主题。实施成功。但我添加了一个带有图标“fa-clock-o”的自定义按钮。但图标无法显示。显示未定义的 我的选择是 this.options = { customButtons: { myCustomButton: { icon: "fa fa-clock-o", click: () => this.picker.open() } }, heade

我已经尝试创建一个完整的日历与引导主题。实施成功。但我添加了一个带有图标“fa-clock-o”的自定义按钮。但图标无法显示。显示未定义的

我的选择是

this.options = {
      customButtons: {
        myCustomButton: {
          icon: "fa fa-clock-o",
          click: () => this.picker.open()
        }
      },
      header: {
        right: 'prev next today',
        left: 'title',
        center: 'myCustomButton dayGridMonth,timeGridWeek,timeGridDay'
      }
} 
检查一下那个按钮,它看起来像

<button type="button" class="fc-myCustomButton-button btn btn-primary" undefined="">undefined</button>
未定义

帮我解决这个问题。提前谢谢

我对css不太了解,但是。。。你确定这个“fa-clock-o”是图像而不是css类吗?这将起作用:您可以查找类定义并检查实际图标是什么is@CR92fullCalendar允许您设置字体类,从中读取图标数据。但是我怀疑OP应该只指定
fa-clock-o
而不是
fa-clock-o
@CR92我也试过了。但它没有定义only@VelusamyVenkatraman尝试只指定
图标:“fa-clock-o”
而不是
图标:“fa-clock-o”
。另外,您是否正在使用fullCalendar引导主题?你加载了字体很棒的文件吗?“只有你也做这些事情,它才会起作用。”阿德森:你能看看这些东西吗。没有创建任何图标。我只使用引导主题。但其他图标正在工作。像“左足部V形”一样,“左足部V形”也在工作