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

confirm

Description

Открывает confirm message box

confirm: (config: any) => HTMLElement

Parameters

  • config - (required) object - настройки для confirm box

Returns

  • div - (HTMLElement) - div элемент, содержащий confirm box

Example

var box = scheduler.confirm({
text: "Continue?",
ok:"Yes",
cancel:"No",
callback: function(result){
if(result){
scheduler.message("Yes!");
}else{
scheduler.message("No...");
}
}
});

Details

Для получения дополнительной информации о доступных параметрах конфигурации confirm message box, ознакомьтесь со статьей Всплывающие сообщения и модальные окна.

Change log

  • добавлено в версии 6.0
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.