getActionData

returns the current cursor-pointed date and section (if defined)

object getActionData(Event e);
eEventa native event object
objectan object with 2 properties:
  • date - (Date) the object of the cursor-pointed date
  • section - (string, number) the id of the cursor-pointed section (for the Timeline and Units view)

Example

scheduler.attachEvent("onMouseMove", function(id, e){
   var action_data = scheduler.getActionData(e);
   // -> {date:Tue Jun 30 2009 09:10:00, section:2}
   ...
})

Related samples

Details

Available from version 3.5

Back to top