Home > SYS_Dialog > showInformationMessage
SYS_Dialog.showInformationMessage() method
Show an information dialog
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) Popup window title |
buttonTitle | string | (Optional) Button title. If empty, the button is not displayed |
Returns
void
Remarks
Show a text message window
Example
javascript
// 1. 弹出消息窗口(content 用 \n 换行展示两行内容)
eda.sys_Dialog.showInformationMessage('DRC 检查完成\n 共检查 128 个图元,未发现违规', '检查结果', '知道了');
// 2. 窗口立即弹出;本方法无返回值,也不阻塞后续代码
console.log('已弹出消息窗口');1
2
3
4
5
2
3
4
5