javascript - In fullcalendar v2, How can I set options dynamically -


how can set selectable , select options after calendar created?

i tried following, doesn't work:

$('#calendar').fullcalendar('selectable', true); $('#calendar').fullcalendar('select', function(start, end) {     ... }); $('#calendar').fullcalendar('render'); 

docs: http://fullcalendar.io/docs

@russell, think u can't dynamically set calendar properties once u initialize fullcalendar.

may u have reinitialize calendar destroying previous instance.

 $('#calendar').fullcalendar('destroy');  initializecalendar(settings); //custom js method initialize calendar settings. 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -