Optional
props: FragmentPropsProtected
_Protected
Optional
_Discriminator to identify classes that implement this interface
A css selector to specify where the element should be rendered When nesting elements, the parent should be responsible for assigning the containerSelector on its children
A css selector to specify where the element should be rendered When nesting elements, the parent should be responsible for assigning the containerSelector on its children
Protected
_Completely removes the element from the DOM
Method used to render the actual element and apply the necessary event handlers
A string representation used to render the actual element into the DOM
A fragment is just an HTMDElement that renders multiple children without wrapping them on another element.
Contrary to regular HTMDElements, a fragment can't contain all types of HTMDNode, since Fragment will not act as a parent node in the DOM, it needs an implementation of the HTMDElementInterface
See
HTMDElementInterface