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

Method getSlots

packages/base/src/UI5ElementMetadata.ts:220–225  ·  view source on GitHub ↗

* Returns an object with key-value pairs of slots and their metadata definitions * @public

()

Source from the content-addressed store, hash-verified

218 * @public
219 */
220 getSlots(): Record<string, Slot> {
221 if (!this.metadata.slots) {
222 this.metadata.slots = {};
223 }
224 return this.metadata.slots;
225 }
226
227 /**
228 * Determines whether this UI5 Element has any translatable texts (needs to be invalidated upon language change)

Callers 7

getInitialStateMethod · 0.95
canSlotTextMethod · 0.95
hasSlotsMethod · 0.95
hasIndividualSlotsMethod · 0.95
_updateSlotsFunction · 0.80
_generateAccessorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected