跳转到主要内容

alert

Description​

显示一个 alert 消息框

alert: (config: any) => HTMLElement

Parameters​

  • config - (required) object - alert 框的配置设置

Returns​

  • div - (HTMLElement) - 包含 alert 框的 div 元素

Example​

const box = scheduler.alert({
title:"Alert",
type:"alert-error",
text:"You can't do this"
});

Details​

有关 alert 消息框可用配置选项的更多信息,请参阅 Popup Messages and Modal Boxes 文章。

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.