Reference to the real DOM node which this Node represents.
Whether listener was added (false if such a listener has already been present)
Whether child was successfully appended
Whether child was successfully inserted
Whether child was successfully removed
Note: Does nothing if oldChild
was not found in parent's children, or if oldChild==newChild
Note: Does nothing if oldChild
was not found in parent's children, or if oldChild==newChild
Whether child was replaced
Note: Does nothing if fromIndex
or toIndex
are out of bounds or if fromIndex>toIndex
Note: Does nothing if fromIndex
or toIndex
are out of bounds or if fromIndex>toIndex
Whether children were replaced
Note: Make sure to call willSetParent before calling this method manually
Note: Make sure to call willSetParent before calling this method manually
This is called as a notification, BEFORE changes to the real DOM or to the Scala DOM tree are applied.
This is called as a notification, BEFORE changes to the real DOM or to the Scala DOM tree are applied. - Corollary: When this is called, this node's maybeParent reference has not been updated yet.
Default implementation is a noop. You can override this to implement DOM lifecycle hooks similar to
React's componentWillUnmount
.
Note: This method is NOT automatically called inside setParent because setParent is called AFTER the real DOM was modified. Therefore, IF you call setParent directly, you need to also call willSetParent before that, if you plan to implement that method. However, if you only call setParent indirectly, via the methods defined in ParentNode, those methods take care of calling willSetParent for you.
None
means this node is about to be detached form its parent