2017-05-04 145 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"); 
     },