Bot releases are hidden (Show)
Changes from Binding.scala 8.0.x/9.0.x:
Added route library.
See this example for its usage.
Supported referencing HTML DOM elements by id
attributes.
@dom showInput(v: Vars[String]) = <div>
<!-- any Scala code inside the div element is able to access `myInput` -->
<input id="myInput" onclick={_: Event => v := myInput.value />
</div>
@dom
methods.oldSeq
/oldValue
in MultiMountPoint
/SingleMountPoint
has been removed.SingleMountPoint
is deprecated, in favor of simply Binding[Unit]
block. See this example for usage.dom.currentTarget
is deprecated, in favor of id
attribute.In the next major version (Binding 11.0), we will support JavaFX and FXML. Afterwards, we will also launch the development of Android support. Binding.scala will become an universal solution for GUI on all platforms in 2017.
Thanks to all the contributors who create Pull Requests, report bugs and discuss the design for Binding.scala on Gitter and other forums.
Special thanks to @Psycho7, who created an amazing Chinese translation of README,
and @Algomancer, who created a full stack Scala example application showing how to integrate Binding.scala into a Play project with a Scala.js,
and @williamho, who fixed a critical bug,
and @MarisaKirisame, @OlivierBlanvillain, @maowug, @kitsudog, @bbarker, and all of you.
Route
API
XmlExtractor
map
methodUnlike older versions, Binding.scala 10.0.0-M2 does not include scala.xml
package.
If you use Binding.scala dom
library, make sure scala-xml
is in your classpath:
// Add the following settings in your Scala.js projects's build.sbt
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
Seq("org.scala-lang.modules" %% "scala-xml" % "1.0.6" % Provided)
case _ =>
Nil
}
}