All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.raquo.laminar.nodes.ReactiveText.scala Maven / Gradle / Ivy

The newest version!
package com.raquo.laminar.nodes

import com.raquo.dombuilder.generic
import com.raquo.laminar.DomApi
import org.scalajs.dom

class ReactiveText(initialText: String)
  extends ReactiveNode
  with ReactiveChildNode[dom.Text]
  with generic.nodes.Text[ReactiveNode, dom.Text, dom.Node] {

  final override def text: String = ref.data

  final override val ref: dom.Text = DomApi.textApi.createNode(initialText)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy