MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / createPanel

Method createPanel

packages/editor-skeleton/src/skeleton.ts:391–397  ·  view source on GitHub ↗
(config: IPublicTypePanelConfig)

Source from the content-addressed store, hash-verified

389 }
390
391 createPanel(config: IPublicTypePanelConfig) {
392 const parsedConfig = this.parseConfig(config);
393 const panel = new Panel(this, parsedConfig as IPublicTypePanelConfig);
394 this.panels.set(panel.name, panel);
395 logger.debug(`Panel created with name: ${panel.name} \nconfig:`, config, '\n current panels: ', this.panels);
396 return panel;
397 }
398
399 getPanel(name: string): Panel | undefined {
400 return this.panels.get(name);

Callers 2

constructorMethod · 0.95
createWidgetMethod · 0.95

Calls 3

parseConfigMethod · 0.95
setMethod · 0.65
debugMethod · 0.65

Tested by

no test coverage detected