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
0
votes
1 answer

How build a composable wrapper that wraps another composable unit with Binding.scala

I am experimenting making composable components using binding.scala. I would like to be able to have a component that can be used to wrap other components that are passed in. For example: a card component that wraps a styled box around any other…
J. Jensen
  • 11
  • 1
0
votes
3 answers

Access Javascript objects imported by url in html

I am writing an embedded application where i am using Office 365 library to access outlook email context which is exposed to my application via global object Office i wrote already javascript application in which i included script url in html page…
Rajeev
  • 4,762
  • 8
  • 41
  • 63
0
votes
1 answer

"Yield" doesn't work in binding.scala

Several days ago I read about binding.scala and I found it so cool therefore I decided to write my own single page app. The problem is that I'm trying to add "li" items into "ul" element, but it seems like the component Want doesn't see updates. The…
0
votes
1 answer

How to use pattern matching in Binding.scala?

I have the following model: case class CarBinding(ownerId: Var[String], specs: Var[Option[Specs]]) Specs is a trait and has the following concrete types: trait Specs { def name: String } case class SportsCarSpecs(name: String, details:…
John Doe
  • 271
  • 2
  • 17
0
votes
1 answer

My input html forms misses focus/empties when a Var changes

I want to create some UI from Binding.scala. The UI contains a textbox. When the user type text in the textbox, I want to change the background color according to the user input. import com.thoughtworks.binding._, Binding._ import…
Yang Bo
  • 3,586
  • 3
  • 22
  • 35
0
votes
2 answers

How do I create a Binding of HTML node conditionally?

I want to conditionally create a Binding of HTML node. @dom def maybeEmpty: Binding[Node] = { if (math.random > 0.5) {
non-empty content
} } However the code does not compile. error: type mismatch; found : Unit required:…
Yang Bo
  • 3,586
  • 3
  • 22
  • 35
-1
votes
1 answer

binding.scala component to string conversion

I have a binding.scala component and a third party scalajs library that takes html string as input. How can the b.s component can be passed to the library method as an argument? Specifics: import com.thoughtworks.binding.Binding._ import…
mcku
  • 1,351
  • 12
  • 23
1 2 3
4