onAttach

override fun onAttach()

Refuses an element that is not additive. An element naming Decoratable as its target type is refused before this node is created; otherwise this node is refused if the component is not a Decoratable.

Throws

if the element creating this node is not additive, or the component does not paint through a decoration.