com.raquo.laminar.nodes

Type members

Classlikes

trait ChildNode[+Ref <: Node] extends ReactiveNode[Ref] with Modifier[ReactiveElement[Element]]
Companion:
object
object ChildNode
Companion:
class
class CommentNode(initialText: String) extends ChildNode[Comment]
trait ParentNode[+Ref <: Element] extends ReactiveNode[Ref]
Companion:
object
object ParentNode
Companion:
class
trait ReactiveElement[+Ref <: Element] extends ChildNode[Ref] with ParentNode[Ref]
Companion:
object
Companion:
class
class ReactiveHtmlElement[+Ref <: Element](val tag: HtmlTag[Ref], val ref: Ref) extends ReactiveElement[Ref]
Companion:
object
Companion:
class
trait ReactiveNode[+Ref <: Node]
class ReactiveSvgElement[+Ref <: Element](val tag: SvgTag[Ref], val ref: Ref) extends ReactiveElement[Ref]
Companion:
object
Companion:
class
class RootNode(val container: Element, val child: Base) extends ParentNode[Element]

RootNode will mount itself (and the child) if the container node is attached to the DOM at RootNode initialization time.

RootNode will mount itself (and the child) if the container node is attached to the DOM at RootNode initialization time.

Note: RootNode does not receive any outside notifications about the container being attached or detached from the DOM.

If you are trying to create a Laminar RootNode inside a React.js component, make sure to call:

  • mount() when componentDidMount is due, and
  • unmount() when componentWillUnmount is due.

Other libraries' integration follows the same principle.

class TextNode(initialText: String) extends ChildNode[Text]