Questions tagged [binding.scala]

Binding.scala is a data-binding framework for Scala, running on both JVM and Scala.js. Binding.scala can be used as a reactive web framework. It enables you use native XHTML literal syntax to create reactive DOM nodes, which are able to automatically change whenever the data source changes.

Binding.scala is a data-binding framework for Scala, running on both JVM and Scala.js.

Binding.scala can be used as a reactive web framework. It enables you use native XHTML literal syntax to create reactive DOM nodes, which are able to automatically change whenever the data source changes.

More information: https://github.com/ThoughtWorksInc/Binding.scala

52 questions
2
votes
0 answers

Scala.JS: Cannot call lookupMethod(init___sc_Seq) on non Scala class sjs_js_Function

I get the following exception when sbt run in my scala.js - Binding.scala project: [info] Fast optimizing /Users/..../client/target/scala-2.12/cms-adapters-general-client-fastopt.js [error] java.lang.AssertionError: assertion failed: Cannot call…
pme
  • 14,156
  • 3
  • 52
  • 95
2
votes
1 answer

Toomany DOM updates

The link [https://ccamel.github.io/playground-binding.scala/index.html#playground-binding.scala/home] has few demos of binding.scala I have used DomListner extension in chrome to understand the dom events. I found for each interaction there are…
kiran.kumar M
  • 811
  • 8
  • 25
2
votes
1 answer

Why is the Binding.scala router not reevaluated?

I'm trying to build a generic router for a personal project by Binding.scala. I've defined a PageState trait sealed trait WhistState { def text: String def hash: String def render: Binding[Node] } with a number of subclasses for each route…
Henrik Kirk
  • 604
  • 1
  • 6
  • 18
2
votes
1 answer

Access nested property of JS Object in ScalaJS

i am trying to access a property which is available in deep inside of an object. How to do this in scala js type safe way? internetMessageId property is available on Office object which is accessible in plain javascript in below way…
Rajeev
  • 4,762
  • 8
  • 41
  • 63
2
votes
1 answer

How to bind to active route

I'm using com.thoughtworks.binding:route:11.0.0-M4 library for managing the routing, and until now I was implementing the thing by following the TODO example (available in project github): Route.watchHash(currentTodoList)(new Route.Format[TodoList]…
Chris
  • 63
  • 4
2
votes
1 answer

How to execute some init after element loaded to dom with Binding.scala

@dom def chart(show: Var[Boolean]) = { if(show.bind) { } } How can I init the canvas with some chart library like chartjs when it is loaded to dom ?
jilen
  • 5,633
  • 3
  • 35
  • 84
2
votes
2 answers

How to render json result from api request using Binding.scala

I tried the following code to render json into dom but failed
{val result = FutureBinding(ApiHomeProjectsGet.request()) result.bind match { case None =>
Loading...
case…
hailong
  • 51
  • 2
2
votes
1 answer

How to split html content into partials using Binding.scala?

I want to split my html content into different partials, so can combine them easily in different pages. I tried to code like this: object App extends JSApp { @dom def title2() = {

Title 2