Binding.scala is a data-binding library for Scala, running on both JVM and Scala.js. Binding.scala can be used as the basis of UI frameworks, however latest Binding.scala 12.x does not contain any build-in UI frameworks anymore. For creating reactive HTML UI, you may want to check out html.scala, which is a UI framework based on Binding.scala, and it is also the successor of the previously built-in dom library. See also React / Binding.scala / html.scala Interoperability for using existing React components with Binding.scala. Regular HTML does not compile unless developers manually replace class and for attributes to className and htmlFor, and manually convert inline styles from CSS syntax to JSON syntax.
Features
- Render the data-binding expressions to DOM in the main method
- Add some button to fill data for the table
- Create a data field, which contains some Var and Vars as data source for your data-binding expressions
- Create a @html method that contains data-binding expressions
- Precise data-binding
- Lifecycle management for data-binding expressions