onClick

fires when the user clicks the left mouse button on an event

boolean onClick(string id,Event e);
idstringthe event's id
eEventa native event object
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

scheduler.attachEvent("onClick", function (id, e){
       //any custom logic here
       return true;
  });

Related samples

Details

The event is blockable. If non-true value is returned from the handler, the default reaction will be blocked ( by default, the selection bar appears).

See also
Back to top