Skip to content

v0.1.0

Compare
Choose a tag to compare
@rtimush rtimush released this 26 Feb 07:36
· 134 commits to master since this release

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
)