DayPilot.Scheduler.keyboardTarget

The keyboardTarget property (string) specifies the keydown event listener target used for the built-in Scheduler keyboard support.

Declaration

DayPilot.Scheduler.keyboardTarget

Possible Values

  • "document" - the keydown event listener will be added to the document object.

  • "component" - the keydown event listener will be added to the Scheduler component placeholder element.

Default Value

"document"

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  keyboardTarget: "component",
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  keyboardTarget: "component",
  // ...
};

React

<DayPilotScheduler
  keyboardTarget="component"
  {/* ... */}
/>

Vue

<DayPilotScheduler
  keyboardTarget="component"
  <!-- ... -->
/>

See Also

Keyboard Support [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript