TextNode

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

Value members

Concrete methods

final def text: String

Inherited methods

override def apply(parentNode: Base): Unit

You can count on this method being a no-op in your libraries and end user code.

You can count on this method being a no-op in your libraries and end user code.

The reason this method is not abstract is to avoid broken SAM sugar in case of meta modifiers. See https://github.com/raquo/scala-dom-types/issues/27

Definition Classes
Inherited from:
ChildNode
def maybeParent: Option[Base]
Inherited from:
ChildNode

Concrete fields

final override val ref: Text

Reference to the real DOM node which this ReactiveNode represents. Laminar nodes MUST NOT share the same ref. This isn't "virtual dom"!

Reference to the real DOM node which this ReactiveNode represents. Laminar nodes MUST NOT share the same ref. This isn't "virtual dom"!