MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / onShowPanel

Method onShowPanel

packages/shell/src/api/skeleton.ts:157–163  ·  view source on GitHub ↗

* 监听 panel 显示事件 * @param listener * @returns

(listener: (paneName: string, panel: IPublicModelSkeletonItem) => void)

Source from the content-addressed store, hash-verified

155 * @returns
156 */
157 onShowPanel(listener: (paneName: string, panel: IPublicModelSkeletonItem) => void): IPublicTypeDisposable {
158 const { editor } = this[skeletonSymbol];
159 editor.eventBus.on(SkeletonEvents.PANEL_SHOW, (name: any, panel: any) => {
160 listener(name, new SkeletonItem(panel));
161 });
162 return () => editor.eventBus.off(SkeletonEvents.PANEL_SHOW, listener);
163 }
164
165 onDisableWidget(listener: (...args: any[]) => void): IPublicTypeDisposable {
166 const { editor } = this[skeletonSymbol];

Callers

nothing calls this directly

Calls 2

onMethod · 0.65
offMethod · 0.65

Tested by

no test coverage detected