Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit d378796

Browse files
Fixed Placeholder constructor problem
1 parent 6adfdaf commit d378796

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

sandbox-ui/src/main/scala/example/views/Page.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package example.views
22

3-
import tyrian.next.HtmlFragment
4-
import tyrian.next.MarkerId
3+
import tyrian.next.*
54
import tyrian.ui.*
6-
import tyrian.ui.layout.Placeholder
75

86
object Page:
97

tyrian-next/src/main/scala/tyrian/ui/UIElement.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Stateless Components
108108
- HtmlElement - DONE
109109
- Link - DONE
110110
- Tables - DONE(ish)
111-
- Canvas (2D, WebGL 1/2, WebGPU)
111+
- Canvas (2D, WebGL 1/2, WebGPU) - DONE (basic)
112112
113113
114114

tyrian-next/src/main/scala/tyrian/ui/layout/Placeholder.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,3 @@ object Placeholder:
4545

4646
def apply(marker: MarkerId, children: UIElement[?, ?]*): Placeholder =
4747
Placeholder(marker, children.toList)
48-
49-
def apply(marker: MarkerId, children: List[UIElement[?, ?]]): Placeholder =
50-
Placeholder(marker, children.toList)

tyrian-next/src/main/scala/tyrian/ui/package.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ val Layout: layout.Layout.type = layout.Layout
125125

126126
val Row: layout.Row.type = layout.Row
127127

128+
type Placeholder = layout.Placeholder
129+
val Placeholder: layout.Placeholder.type = layout.Placeholder
130+
128131
// ---- Stateless elements ----
129132

130133
// HTML

0 commit comments

Comments
 (0)