addShortcut
Description
Создаёт новую клавиатурную комбинацию (shortcut)
addShortcut: (shortcut: string, handler: SchedulerCallback, scope?: string) => void
Parameters
shortcut- (required) string - клавиша или комбинация клавиш, определяющая shortcut (синтаксис shortcut)handler- (required) function - функция, которая будет вызвана при срабатывании shortcutscope- (optional) string - (опционально) указывает контекстный элемент, к которому прикреплен handler (список scope)
Example
scheduler.addShortcut("shift+w", function(e){
var eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");
Related samples
Details
добавлено в версии 4.4
Если третий параметр опущен, handler по умолчанию прикрепляется к scope scheduler.
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.