Skip to content

Releases: rtimush/scalatags-rx

v0.5.0

26 Jul 16:15
Compare
Choose a tag to compare

Maintenance release cross-built for Scala 2.13 and 2.12.

v0.4.0

21 Jan 21:37
Compare
Choose a tag to compare

Maintenance release targeted to Scala.Rx 0.4.0 compatibility.

v0.3.0

19 Dec 07:05
Compare
Choose a tag to compare

Maintenance release targeted to Scala.Rx 0.3.2 compatibility.

v0.1.0

26 Feb 07:36
Compare
Choose a tag to compare

Initial release. Use Rx[T] values in ScalaTags DSL and get dynamic updates for:

  • Child nodes
  • Attribute values
  • Styles

Example:

val c = Var("blue")
val text = Rx(s"It is a ${c()} text!")

def toggle(): Unit = {
  c() = if (c() == "blue") "green" else "blue"
}

document.body.appendChild(
  div(
    color := c, onclick := toggle _,
    text
  ).render
)