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

Method onEnableWidget

packages/shell/src/api/skeleton.ts:173–179  ·  view source on GitHub ↗
(listener: (...args: any[]) => void)

Source from the content-addressed store, hash-verified

171 }
172
173 onEnableWidget(listener: (...args: any[]) => void): IPublicTypeDisposable {
174 const { editor } = this[skeletonSymbol];
175 editor.eventBus.on(SkeletonEvents.WIDGET_ENABLE, (name: any, panel: any) => {
176 listener(name, new SkeletonItem(panel));
177 });
178 return () => editor.eventBus.off(SkeletonEvents.WIDGET_ENABLE, listener);
179 }
180
181 /**
182 * 监听 panel 隐藏事件

Callers

nothing calls this directly

Calls 2

onMethod · 0.65
offMethod · 0.65

Tested by

no test coverage detected