Home > SYS_MessageBox > showInformationMessage
SYS_MessageBox.showInformationMessage() method
Warning: This API is now obsolete.
Please use SYS_Dialog.showInformationMessage() instead
Show a message box
Signature
typescript
function showInformationMessage(content: string, title?: string, buttonTitle?: string): void;1
Parameters
Parameter | Type | Description |
|---|---|---|
content | string | Message text. Line breaks can be used with |
title | string | (Optional) Message box title |
buttonTitle | string | (Optional) Button title. If empty, the button is not displayed |
Returns
void
Remarks
Show a text message box
Example
javascript
// 1. 弹出消息窗口(content 用 \n 换行展示两行内容)
eda.sys_MessageBox.showInformationMessage('DRC 检查完成\n 共检查 128 个图元,未发现违规', '检查结果', '知道了');
// 2. 窗口立即弹出;本方法无返回值,也不阻塞后续代码
console.log('已弹出消息窗口');1
2
3
4
5
2
3
4
5