MCPcopy Create free account
hub / github.com/UI5/webcomponents / checkForWrapper

Method checkForWrapper

packages/main/src/ToolbarItem.ts:93–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92 // Method called by ui5-toolbar to inform about the existing toolbar wrapper
93 checkForWrapper() {
94 if (this._wrapperChecked) {
95 return;
96 }
97 this._wrapperChecked = true;
98
99 const tagName = this.itemTagName as keyof typeof this.predefinedWrapperSet;
100 const ctor = this.constructor as typeof ToolbarItem;
101 const wrapperName = ctor?.getMetadata ? ctor.getMetadata().getPureTag() : this.tagName;
102 if (wrapperName === "ui5-toolbar-item"
103 && this.predefinedWrapperSet[tagName]) {
104 // eslint-disable-next-line no-console
105 console.warn(`This UI5 web component has its predefined toolbar wrapper called ${this.predefinedWrapperSet[tagName]}.`);
106 }
107 }
108
109 // We want to close the overflow popover, when closing event is being executed
110 getClosingEvents(): string[] {

Callers 1

onBeforeRenderingMethod · 0.95

Calls 2

getPureTagMethod · 0.80
getMetadataMethod · 0.80

Tested by

no test coverage detected