2017-05-04 115 views
0

有没有办法隐藏或不显示事件块,同时使用自定义文本? enter image description hereFullCalendar不显示事件块,而是显示自定义文本?

+1

你只是想在日历上,而不是事件的文本?一些CSS可以使文本看起来像你想要的那样 – WillardSolutions

+0

@EatPeanutButter是正确的,但我只希望在特定日期有不同的文本。 –

+2

将它们添加为事件。这就是日历的用途。如果您愿意,您可以自定义事件的外观。文档在这里:https://fullcalendar.io/docs/ – WillardSolutions

回答

0

像EatPeanutButter说我可以自定义eventRender事件appareance:

eventRender: function(event, element) { 
      console.log(event); 
      console.log(element); 
      element.text("a bigger text for this object, you can modify element as you want now with another label"); 
     },