Questions tagged [udash]

9 questions
3
votes
1 answer

Calling Scala.js code from a native Javascript handler

I have a Scala.js application using Udash. The application is using some Bootstrap extensions, which directly manipulate HTML DOM. I would like to traverse this DOM and add some more handlers to it (eventually I would like the handlers to implement…
Suma
  • 33,181
  • 16
  • 123
  • 191
1
vote
1 answer

udash tutorial fails to run

I follow the tutorial on https://guide.udash.io/ but it fails to run: $ sbt new UdashFramework/udash.g8 name [My Udash Application]: package [io.company.app]: scala_version [2.12.8]: udash_version [0.8.0-RC8]: sbt_version [1.2.8]: $ cd…
David Portabella
  • 12,390
  • 27
  • 101
  • 182
1
vote
1 answer

How to run "sbt run" without compilation/checks?

VPS has low memory and cannot run compilation without crashing. I cannot generate working fat-jar (tried a lot of stuff with sbt-assembly, sbt-native-packager and sbt-start-script without any success). I am not asking how to create a…
monnef
  • 3,903
  • 5
  • 30
  • 50
0
votes
1 answer

Scala.js: How do I read the value using of an input element using Scala.js?

I am trying to do something like this: Hello! import io.udash.wrappers.jquery.jQ // Read from Scala val x = jQ("#test").value().asIntanceOf[String] But, I get a ClassCastException saying String | Int | Double |…
pathikrit
  • 32,469
  • 37
  • 142
  • 221
0
votes
1 answer

How to apply a jquery-ui widget when an input is dynamically loaded

I want to use the JQueryUI spinner widget on inputs that are loaded using the udash repeat method. I have tried the following approach: val integers = SeqProperty(Seq[Int](5, 7)) val rootNode = div( button(onclick:= add, "Add"), …
user79074
  • 4,937
  • 5
  • 29
  • 57
0
votes
2 answers

How do I conditionally render more than one item in a repeat

I would like to produce a repeating set of nodes using a conditional showIf for one of the nodes something like the following: div divChild 1
divChild 2
div<>Optional text for child…
user79074
  • 4,937
  • 5
  • 29
  • 57
0
votes
1 answer

Scala Jetty webapp on Heroku 404

I'm testing around with a Scala web framework (Udash) and trying to run a toy-example in Heroku. I have it running without issues in local following the instructions in the Heroku docs: sbt compile stage heroku local web However, once deployed, any…
pmbrull
  • 1
  • 2
0
votes
1 answer

How to package/deploy udash application?

I developed a http://udash.io/ application. How do you package the web application for deployment? I tried the sbt native-packager plugin, but it seems resources are not picked up, e.g. the static web assets.
m4t
  • 183
  • 2
  • 7
0
votes
1 answer

Deploy Udash demo app to NGINX

How can I deploy the Udash framework demo outside of SBT, and run it under NGINX?