Skip to content

Commit

Permalink
New: text alias to child.text
Browse files Browse the repository at this point in the history
  • Loading branch information
raquo committed Nov 24, 2023
1 parent b8c8504 commit 6c7f218
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/com/raquo/laminar/api/Laminar.scala
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ trait Laminar

val child: ChildReceiver.type = ChildReceiver

val text: ChildTextReceiver.type = ChildTextReceiver

val children: ChildrenReceiver.type = ChildrenReceiver


Expand Down
3 changes: 3 additions & 0 deletions src/test/scala/com/raquo/laminar/SyntaxSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ class SyntaxSpec extends UnitSpec {
child.text <-- periodicInt,
child.text <-- boolBus,
child.text <-- doubleBus.events,
text <-- periodicInt,
text <-- boolBus,
text <-- doubleBus.events,
children <-- childrenObs,
children <-- childrenObs.map(c => c),
children <-- childrenStream,
Expand Down

0 comments on commit 6c7f218

Please sign in to comment.