Home > SYS_PanelControl > openLeftPanel
SYS_PanelControl.openLeftPanel() method
Open the left panel
Signature
typescript
function openLeftPanel(tab?: ESYS_LeftPanelTab): void;1
Parameters
Parameter | Type | Description |
|---|---|---|
tab | (Optional) Tab. If not specified, the tab will not be switched |
Returns
void
Example
javascript
// 1. 打开左侧面板并切换到工程设计标签页
eda.sys_PanelControl.openLeftPanel('projectDesign');
console.log('左侧面板已展开,并切换到工程设计标签页');
// 2. 收起面板还原界面(自建自删,保证案例可重复运行)
eda.sys_PanelControl.closeLeftPanel();
console.log('左侧面板已收起,界面还原');1
2
3
4
5
6
7
2
3
4
5
6
7