addShortcut
Description
Erstellt eine neue Tastenkombination (Shortcut)
addShortcut: (shortcut: string, handler: SchedulerCallback, scope?: string) => void
Parameters
shortcut- (required) string - die Taste oder Tastenkombination, die den Shortcut definiert (Shortcut-Syntax)handler- (required) function - die Funktion, die aufgerufen wird, wenn der Shortcut ausgelöst wirdscope- (optional) string - gibt das Kontext-Element an, an das der Handler gebunden wird (Liste der Scopes)
Example
scheduler.addShortcut("shift+w", function(e){
var eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");
Related samples
Details
hinzugefügt in Version 4.4
Wenn der dritte Parameter weggelassen wird, wird der Handler standardmäßig an den Scheduler-Scope gebunden.
Related API
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.