You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A callback that is executed each time an already rendered component is invalidated (scheduled for re-rendering)
16
+
*
17
+
* @param changeInfo An object with information about the change that caused invalidation.
18
+
* The object can have the following properties:
19
+
* - type: (property|slot) tells what caused the invalidation
20
+
* 1) property: a property value was changed either directly or as a result of changing the corresponding attribute
21
+
* 2) slot: a slotted node(nodes) changed in one of several ways (see "reason")
22
+
*
23
+
* - name: the name of the property or slot that caused the invalidation
24
+
*
25
+
* - reason: (children|textcontent|childchange|slotchange) relevant only for type="slot" only and tells exactly what changed in the slot
26
+
* 1) children: immediate children (HTML elements or text nodes) were added, removed or reordered in the slot
27
+
* 2) textcontent: text nodes in the slot changed value (or nested text nodes were added or changed value). Can only trigger for slots of "type: Node"
28
+
* 3) slotchange: a slot element, slotted inside that slot had its "slotchange" event listener called. This practically means that transitively slotted children changed.
29
+
* Can only trigger if the child of a slot is a slot element itself.
30
+
* 4) childchange: indicates that a UI5Element child in that slot was invalidated and in turn invalidated the component.
31
+
* Can only trigger for slots with "invalidateOnChildChange" metadata descriptor
32
+
*
33
+
* - newValue: the new value of the property (for type="property" only)
34
+
*
35
+
* - oldValue: the old value of the property (for type="property" only)
36
+
*
37
+
* - child the child that was changed (for type="slot" and reason="childchange" only)
38
+
*
39
+
*/
40
+
onInvalidation: (changeInfo)=>void;
14
41
/**
15
42
* Returns the DOM Element inside the Shadow Root that corresponds to the opening tag in the UI5 Web Component's template
0 commit comments