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

Method onDisableWidget

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

Source from the content-addressed store, hash-verified

163 }
164
165 onDisableWidget(listener: (...args: any[]) => void): IPublicTypeDisposable {
166 const { editor } = this[skeletonSymbol];
167 editor.eventBus.on(SkeletonEvents.WIDGET_DISABLE, (name: any, panel: any) => {
168 listener(name, new SkeletonItem(panel));
169 });
170 return () => editor.eventBus.off(SkeletonEvents.WIDGET_DISABLE, listener);
171 }
172
173 onEnableWidget(listener: (...args: any[]) => void): IPublicTypeDisposable {
174 const { editor } = this[skeletonSymbol];

Callers

nothing calls this directly

Calls 2

onMethod · 0.65
offMethod · 0.65

Tested by

no test coverage detected