confirm
Description
打开一个 confirm 消息框
confirm: (config: any) => HTMLElement
Parameters
config- (required) object - confirm 消息框的配置设置
Returns
div- (HTMLElement) - 包含 confirm 消息框的 div 元素
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 消息框可用配置选项的更多信息,请参阅 Popup Messages and Modal Boxes 文章。
Related API
Related Guides
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.