laravel-fullcalendar icon indicating copy to clipboard operation
laravel-fullcalendar copied to clipboard

How can I set html id of calendar

Open mjawaids opened this issue 7 years ago • 2 comments

How can I set html id of calendar, not event. So, I can access the calendar in javascript via #calendar selector. I want to access it so I can call the $('#calendar').fullCalendar('render'); in javascript.

mjawaids avatar Dec 24 '17 01:12 mjawaids

I have the same question.

It does get a unique, constant class of "fc" so there's that. As for the ID, it seems to be dynamically assigned, e.g. #calendar**-reFWTY7b**". Can we provide our own ID instead, for convenience?

magnosis avatar Jan 26 '18 14:01 magnosis

If you look at the Calendar.php implementation, it does provide

public function getId()

I hope this helps.

magnosis avatar Jan 26 '18 15:01 magnosis