Skip to content

Commit

Permalink
Update src/Fabulous/Builders.fs
Browse files Browse the repository at this point in the history
Co-authored-by: Timothé Larivière <[email protected]>
  • Loading branch information
edgarfgp and TimLariviere authored May 15, 2024
1 parent 5c1f299 commit 34f95f0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Fabulous/Builders.fs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,15 @@ type CollectionBuilder<'msg, 'marker, 'itemMarker> =
val Attr: WidgetCollectionAttributeDefinition
val Attributes: AttributesBundle

new(widgetKey: WidgetKey, attr: WidgetCollectionAttributeDefinition, scalars: AttributesBundle) =
new(widgetKey: WidgetKey, attr: WidgetCollectionAttributeDefinition, attributes: AttributesBundle) =
{ WidgetKey = widgetKey
Scalars = scalars
Attr = attr }
Attr = attr
Attributes = attributes }

new(widgetKey: WidgetKey, attr: WidgetCollectionAttributeDefinition, scalars: StackList<ScalarAttribute>) =
{ WidgetKey = widgetKey
Attr = attr
Attributes = AttributesBundle(scalars, ValueNone, ValueNone) }

new(widgetKey: WidgetKey, attr: WidgetCollectionAttributeDefinition) =
{ WidgetKey = widgetKey
Expand Down

0 comments on commit 34f95f0

Please sign in to comment.