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

Method canSlotText

packages/base/src/UI5ElementMetadata.ts:158–160  ·  view source on GitHub ↗

* Determines whether this UI5 Element has a default slot of type Node, therefore can slot text

()

Source from the content-addressed store, hash-verified

156 * Determines whether this UI5 Element has a default slot of type Node, therefore can slot text
157 */
158 canSlotText() {
159 return (this.getSlots().default)?.type === Node;
160 }
161
162 /**
163 * Determines whether this UI5 Element supports any slots

Callers 2

_updateSlotsFunction · 0.80

Calls 1

getSlotsMethod · 0.95

Tested by

no test coverage detected