DayPilot.Scheduler.onGridMouseDown

This event lets you customize the grid mouse down behavior.

  • By default, mousedown event start time range selecting (if it is enabled).
  • If multiSelectRectangle is active (value other than "Disabled") and the users holds shift key, rectangle selecting is activated.

Related demo:

Declaration

DayPilot.Scheduler.onGridMouseDown(args)

Parameters

  • args.action - action to be started: "None" | "RectangleSelect" | "TimeRangeSelect"
  • args.shift
  • args.ctrl
  • args.meta
  • args.originalEvent
  • args.preventDefault() - cancels the action (sets args.action to "None")