Home > LIB_PanelLibrary > openInEditor
LIB_PanelLibrary.openInEditor() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
在编辑器打开文档
Signature
typescript
openInEditor(panelLibraryUuid: string, libraryUuid: string, splitScreenId?: string): Promise<string | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
panelLibraryUuid | string | 面板库 UUID |
libraryUuid | string | 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
splitScreenId | string | (Optional) 分屏 ID,不填写则默认在最后输入焦点的分屏内打开,可以使用 DMT_EditorControl 内的接口获取 |
Returns
Promise<string | undefined>
标签页 ID,对应 IDMT_EditorTabItem.tabId,可使用 DMT_EditorControl.getSplitScreenIdByTabId() 获取到分屏 ID