Skip to content

Commit 0263754

Browse files
committed
Append demos
1 parent 6a73789 commit 0263754

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/src/main/scala/io/udash/demos/jquery/Init.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.udash.demos.jquery
22

3+
import io.udash.demos.jquery.views.IndexView
34
import io.udash.wrappers.jquery._
45
import org.scalajs.dom
56
import org.scalajs.dom.Element
@@ -15,6 +16,7 @@ object Init {
1516
if (appRoot.isEmpty) {
1617
dom.console.error("Application root element not found! Check you index.html file!")
1718
} else {
19+
appRoot.get.appendChild(IndexView.content.render)
1820
//applicationInstance.run(appRoot.get)
1921
}
2022
})

example/src/main/scala/io/udash/demos/jquery/views/IndexView.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object IndexView {
2424
)
2525

2626
final val content = div(
27-
"Take a look at following demo pages:",
28-
demos.map(_.getTemplate),
27+
"Take a look at following demos:",
28+
demos.map(demo => div(demo.getTemplate)),
2929
)
3030
}

0 commit comments

Comments
 (0)