Skip to content

Commit a933c2c

Browse files
committed
Upgrade to Laminar 15.0.1.
1 parent 1f01db7 commit a933c2c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/tutorial/laminar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To start off, we add a dependency on Laminar in our `build.sbt`:
2929
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.4.0",
3030
+
3131
+ // Depend on Laminar
32-
+ libraryDependencies += "com.raquo" %%% "laminar" % "0.14.2",
32+
+ libraryDependencies += "com.raquo" %%% "laminar" % "15.0.1",
3333
)
3434
{% endhighlight %}
3535

@@ -263,7 +263,7 @@ We first add the following dependency on [MUnit](https://scalameta.org/munit/),
263263

264264
{% highlight diff %}
265265
// Depend on Laminar
266-
libraryDependencies += "com.raquo" %%% "laminar" % "0.14.2",
266+
libraryDependencies += "com.raquo" %%% "laminar" % "15.0.1",
267267
+
268268
+ // Testing framework
269269
+ libraryDependencies += "org.scalameta" %%% "munit" % "0.7.29" % Test,

doc/tutorial/scalablytyped.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ We show it in its entirety first, then we will pick it apart.
175175

176176
var optChart: Option[Chart] = None
177177

178-
canvas(
178+
canvasTag(
179179
// Regular properties of the canvas
180180
width := "100%",
181181
height := "200px",
@@ -209,7 +209,7 @@ We show it in its entirety first, then we will pick it apart.
209209
end renderDataChart
210210
{% endhighlight %}
211211

212-
We create a Laminar `canvas()` element.
212+
We create a Laminar `canvasTag()` element.
213213
We give it a `width` and `height` using Laminar's `:=`, as we did before.
214214

215215
For its actual content, we want Chart.js to take over.
@@ -232,8 +232,8 @@ We store the resulting `chart` instance in a local `var optChart: Option[Chart]`
232232
We will use it later to update the `chart`'s imperative data model when our FRP `dataSignal` changes.
233233

234234
In order to achieve that, we use a `dataSignal -->` binder.
235-
We give it as an argument to the Laminar `canvas` element to tie the binder to the canvas lifetime, as you may [recall from the Laminar tutorial](laminar.html#editing-prices).
236-
Once the `canvas` gets mounted, every time the value of `dataSignal` changes, the callback is executed.
235+
We give it as an argument to the Laminar `canvasTag` element to tie the binder to the canvas lifetime, as you may [recall from the Laminar tutorial](laminar.html#editing-prices).
236+
Once the canvas gets mounted, every time the value of `dataSignal` changes, the callback is executed.
237237

238238
{% highlight scala %}
239239
dataSignal --> { data =>

0 commit comments

Comments
 (0)