Перейти к основному содержимому

addShortcut

Description

Добавляет новую комбинацию клавиш

addShortcut: (shortcut: string, handler: SchedulerCallback, scope?: string) => void

Parameters

  • shortcut - (required) string - имя клавиши или имя комбинации клавиш для ярлыка (синтаксис ярлыка)
  • handler - (required) function - обработчик вызова ярлыка
  • scope - (optional) string - имя контекстного элемента, к которому привязывается функция-обработчик (список областей)

Example

scheduler.addShortcut("shift+w", function(e){ 
var eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");

Details

Добавлено в версии 4.4

Если третий параметр не задан, обработчик будет привязан к области планировщика.

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.