How to add class to FullCalendar event to add CSS word-wrap -
when viewing site's fullcalendar on mobile device, event's time , first few letters of event title shown due smaller screen size.
i wrap text event title using word-wrap: break-word;
believe need define class event name in order style in css.
i saw example on fullcalendar's google calendar instructions seemed i'm looking in terms of adding class event 'unexpected identifier'
error in console pointing classname line item in code.
not sure doing wrong here. new coding , first attempt @ website.
thanks help.
<link rel="stylesheet" href="fullcalendar/fullcalendar.css" /> <script src="lib/jquery.min.js"></script> <script src="lib/moment.min.js"></script> <script src="fullcalendar/fullcalendar.js"></script> <script src="fullcalendar/gcal.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#calendar").fullcalendar({ googlecalendarapikey: "aizasyb4jppyvci5jylv0lqalkzocjt_dqd-zps", events: { googlecalendarid: "b3eki2m39g1lcfcq3nnl1vb9lo@group.calendar.google.com" classname: "gcal-event" } }); });
i think it's typo in json:
events: { googlecalendarid: "b3eki2m39g1lcfcq3nnl1vb9lo@group.calendar.google.com" classname: "gcal-event" }
there should comma between each property in object, "b3eki2m39g1lcfcq3nnl1vb9lo@group.calendar.google.com"
should "b3eki2m39g1lcfcq3nnl1vb9lo@group.calendar.google.com",
Comments
Post a Comment