Skip to content

Commit 684bde2

Browse files
Copilotcsharpfritz
andcommitted
Fix generic parameter names in snippet templates to match component APIs
Co-authored-by: csharpfritz <78577+csharpfritz@users.noreply.github.com>
1 parent c5df7c6 commit 684bde2

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/UtilityFeatures/Snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To use enumeration values without full qualification:
9393
Now you can use values like `Table`, `Flow`, `Horizontal`, `Vertical` directly:
9494

9595
```razor
96-
<DataList TItemType="Product" DataSource="@products" RepeatLayout="Table" RepeatDirection="Horizontal">
96+
<DataList ItemType="Product" DataSource="@products" RepeatLayout="Table" RepeatDirection="Horizontal">
9797
...
9898
</DataList>
9999
```

src/BlazorWebFormsComponents.Snippets/Snippets/DataListComponent.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</Literal>
2525
</Declarations>
2626
<Code Language="Razor">
27-
<![CDATA[<DataList TItemType="$ItemType$" DataSource="@$DataSource$" RepeatColumns="2" RepeatLayout="Table">
27+
<![CDATA[<DataList ItemType="$ItemType$" DataSource="@$DataSource$" RepeatColumns="2" RepeatLayout="Table">
2828
<ItemTemplate>
2929
<div>
3030
<h3>@context.Name</h3>

src/BlazorWebFormsComponents.Snippets/Snippets/FormViewComponent.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</Literal>
2525
</Declarations>
2626
<Code Language="Razor">
27-
<![CDATA[<FormView TItemType="$ItemType$" DataSource="@$DataSource$">
27+
<![CDATA[<FormView ItemType="$ItemType$" DataSource="@$DataSource$">
2828
<ItemTemplate>
2929
<div class="form-view">
3030
<h3>@context.Name</h3>

src/BlazorWebFormsComponents.Snippets/Snippets/GridViewComponent.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</Literal>
2525
</Declarations>
2626
<Code Language="Razor">
27-
<![CDATA[<GridView TItem="$ItemType$" DataSource="@$DataSource$">
27+
<![CDATA[<GridView ItemType="$ItemType$" DataSource="@$DataSource$">
2828
<Columns>
2929
<BoundField DataField="@(nameof($ItemType$.Id))" HeaderText="ID" />
3030
<BoundField DataField="@(nameof($ItemType$.Name))" HeaderText="Name" />

src/BlazorWebFormsComponents.Snippets/Snippets/RepeaterComponent.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</Literal>
2525
</Declarations>
2626
<Code Language="Razor">
27-
<![CDATA[<Repeater TItemType="$ItemType$" DataSource="@$DataSource$">
27+
<![CDATA[<Repeater ItemType="$ItemType$" DataSource="@$DataSource$">
2828
<ItemTemplate>
2929
<div class="item">
3030
@context.Name

0 commit comments

Comments
 (0)