Home > SYS_PanelControl > openRightPanel
SYS_PanelControl.openRightPanel() method
Open the right panel
Signature
typescript
function openRightPanel(tab?: ESYS_RightPanelTab): void;1
Parameters
Parameter | Type | Description |
|---|---|---|
tab | (Optional) Tab. If not specified, the tab will not be switched |
Returns
void
Example
javascript
// 1. 打开右侧面板并切换到批注标签页('annotation' 不依赖文档类型)
eda.sys_PanelControl.openRightPanel('annotation');
console.log('右侧面板已展开,并切换到批注标签页');
// 2. 收起面板还原界面(自建自删,保证案例可重复运行)
eda.sys_PanelControl.closeRightPanel();
console.log('右侧面板已收起,界面还原');1
2
3
4
5
6
7
2
3
4
5
6
7