DetachedRoot

com.raquo.laminar.nodes.DetachedRoot
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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def activate(): Unit

Start the element's subscriptions, as if it was mounted.

Start the element's subscriptions, as if it was mounted.

Attributes

def deactivate(): Unit

Stop the element's subscriptions, as if it was unmounted.

Stop the element's subscriptions, as if it was unmounted.

Attributes

def isActive: Boolean

Returns true if the element's subscriptions are currently active.

Returns true if the element's subscriptions are currently active.

Attributes

def ref: Ref

Concrete fields

val node: El