javascript - How can I have different type of events in Fullcalendar? -


i'm trying have 2 sort of events in full calendar.

one of them clickable , open popup when click on them.

the others 1 don't take care if click on them.

i'm using fullcalendar symfony : https://github.com/adesigns/calendar-bundle

anybody know how that?

edit:

in calendar-settings.js:

$('#calendar-holder').fullcalendar({       select: function (start, end, jsevent, view) {         alert("test");     }),     eventsources: [         {           url: routing.generate('fullcalendar_loader'),           type: 'post',           data: {},           error: function () {},        },     ] 

then in calendareventlistener have:

class calendareventlistener {      private $entitymanager;  public function __construct(entitymanager $entitymanager) {     $this->entitymanager = $entitymanager; }  public function loadevents(calendarevent $calendarevent) {           $evententity = new evententity('firstevent', new datetime(), new datetime());     $calendarevent->addevent($evententity);     $evententity = new evententity('secondevent', new datetime(), new datetime());     $calendarevent->addevent($evententity);  } 

one way may have property 'clickable' or in event object set true/false, , upon eventclick proceed clickable = true?

eventclick: function (event, jsevent, view) {     if (event.clickable === false) { return; }     // else, carry on } 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -