The keyboardTarget property (string) specifies the keydown event listener target used for the built-in Scheduler keyboard support.
Declaration
DayPilot.Scheduler.keyboardTargetPossible Values
"document"- thekeydownevent listener will be added to thedocumentobject."component"- thekeydownevent 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]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot