Home > SYS_LoadingAndProgressBar > showLoading
SYS_LoadingAndProgressBar.showLoading() method
Show the no-progress loading overlay
Signature
typescript
function showLoading(): void;1
Returns
void
Remarks
There is no progress indicator, but a gray overlay consistent with the progress bar will appear to prevent further user operations
Example
javascript
// 1. 显示无进度加载覆盖(同步调用,无返回值)
eda.sys_LoadingAndProgressBar.showLoading();
console.log('加载覆盖已显示,编辑器被灰色覆盖锁定');
// 2. 停留片刻便于观察,随后销毁覆盖还原界面(自建自删,保证案例可重复运行)
await new Promise(r => setTimeout(r, 1000));
eda.sys_LoadingAndProgressBar.destroyLoading();
console.log('加载覆盖已销毁,编辑器恢复可操作');1
2
3
4
5
6
7
8
2
3
4
5
6
7
8