com.raquo.laminar.nodes

Members list

Type members

Classlikes

trait ChildNode[+Ref <: Node] extends ReactiveNode[Ref], Modifier[ReactiveElement[Element]]

Attributes

Companion
object
Supertypes
trait Modifier[ReactiveElement[Element]]
trait ReactiveNode[Ref]
class Object
trait Matchable
class Any
Known subtypes
class CommentNode
trait ReactiveElement[Ref]
class ReactiveHtmlElement[Ref]
class ReactiveSvgElement[Ref]
class TextNode
object ChildNode

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ChildNode.type
class CommentNode(initialText: String) extends ChildNode[Comment]

Attributes

Supertypes
trait ChildNode[Comment]
trait Modifier[ReactiveElement[Element]]
trait ReactiveNode[Comment]
class Object
trait Matchable
class Any
Show all
class DetachedRoot[+El <: Base](val node: El, activateNow: Boolean)

This class lets you manually manage the lifecycle of a single Laminar element. This is useful when you need to pass a DOM element to a third party JS library, and you want that element to be managed by Laminar.

This class lets you manually manage the lifecycle of a single Laminar element. This is useful when you need to pass a DOM element to a third party JS library, and you want that element to be managed by Laminar.

Attributes

Supertypes
class Object
trait Matchable
class Any
trait ParentNode[+Ref <: Element] extends ReactiveNode[Ref]

Attributes

Companion
object
Supertypes
trait ReactiveNode[Ref]
class Object
trait Matchable
class Any
Known subtypes
trait ReactiveElement[Ref]
class ReactiveHtmlElement[Ref]
class ReactiveSvgElement[Ref]
class RootNode
object ParentNode

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ParentNode.type
trait ReactiveElement[+Ref <: Element] extends ChildNode[Ref], ParentNode[Ref]

Attributes

Companion
object
Supertypes
trait ParentNode[Ref]
trait ChildNode[Ref]
trait Modifier[ReactiveElement[Element]]
trait ReactiveNode[Ref]
class Object
trait Matchable
class Any
Show all
Known subtypes
class ReactiveHtmlElement[Ref]
class ReactiveSvgElement[Ref]

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class ReactiveHtmlElement[+Ref <: Element](val tag: HtmlTag[Ref], val ref: Ref) extends ReactiveElement[Ref]

Attributes

Companion
object
Supertypes
trait ReactiveElement[Ref]
trait ParentNode[Ref]
trait ChildNode[Ref]
trait Modifier[ReactiveElement[Element]]
trait ReactiveNode[Ref]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
trait ReactiveNode[+Ref <: Node]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ChildNode[Ref]
class CommentNode
trait ReactiveElement[Ref]
class ReactiveHtmlElement[Ref]
class ReactiveSvgElement[Ref]
class TextNode
trait ParentNode[Ref]
class RootNode
Show all
class ReactiveSvgElement[+Ref <: Element](val tag: SvgTag[Ref], val ref: Ref) extends ReactiveElement[Ref]

Attributes

Companion
object
Supertypes
trait ReactiveElement[Ref]
trait ParentNode[Ref]
trait ChildNode[Ref]
trait Modifier[ReactiveElement[Element]]
trait ReactiveNode[Ref]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
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.

Attributes

Supertypes
trait ParentNode[Element]
trait ReactiveNode[Element]
class Object
trait Matchable
class Any
class TextNode(initialText: String) extends ChildNode[Text]

Attributes

Supertypes
trait ChildNode[Text]
trait Modifier[ReactiveElement[Element]]
trait ReactiveNode[Text]
class Object
trait Matchable
class Any
Show all