Skip to content

Commit

Permalink
Expanded example
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Jun 2, 2024
1 parent fbea507 commit b513113
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions demo/src/main/scala/demo/ComponentsWindow2.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ object ComponentsWindow2:
ComponentList(Bounds(0, 0, 20, 3)) { (count: Int) =>
Batch(Label[Int]("How many windows: ", Label.Theme(charSheet))) ++
Batch.fill(count)(Label("x", Label.Theme(charSheet)))
}.add((count: Int) =>
Batch.fill(count)(Button[Int]("y", Button.Theme(charSheet)).onClick(Log("count: " + count)))
// Button[Int]("test", Button.Theme(charSheet)).onClick(Log("test"))
).withLayout(ComponentLayout.Vertical())
}
.add((count: Int) =>
Batch.fill(count)(
Button[Int]("Button", Button.Theme(charSheet)).onClick(Log("count: " + count))
)
:+ Button[Int]("test", Button.Theme(charSheet)).onClick(Log("test"))
)
.add((i: Int) => TextArea[Int]("abc.\nde,f\n0123456! " + i, TextArea.Theme(charSheet)))
.withLayout(ComponentLayout.Vertical(Padding.zero))
// ComponentGroup()
// .withLayout(ComponentLayout.Vertical(Padding(0, 0, 1, 0)))
// .add(
Expand Down

0 comments on commit b513113

Please sign in to comment.