Skip to content

Commit 05e8024

Browse files
ElderJamesSteveSandersonMS
authored andcommitted
add missing using
1 parent f125109 commit 05e8024

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Microsoft.AspNetCore.Components.QuickGrid.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<!-- Bundle the theme CSS files as if they were scoped, even though they aren't -->
1616
<ThemeCssFiles Include="Themes\*.css" />
1717
<_CurrentProjectDiscoveredScopedCssFiles Include="@(ThemeCssFiles)" RelativePath="%(Identity)" BasePath="_content/$(AssemblyName)" />
18+
19+
<Compile Include="$(ComponentsSharedSourceRoot)src\AttributeUtilities.cs" LinkBase="Infrastructure" />
1820
</ItemGroup>
1921

2022
<ItemGroup>

src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Microsoft.AspNetCore.Components.QuickGrid.Infrastructure;
66
using Microsoft.AspNetCore.Components.Web.Virtualization;
77
using Microsoft.JSInterop;
8+
using Microsoft.AspNetCore.Components.Forms;
89

910
namespace Microsoft.AspNetCore.Components.QuickGrid;
1011

src/Components/Web/src/Microsoft.AspNetCore.Components.Web.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16+
<Compile Include="$(ComponentsSharedSourceRoot)src\AttributeUtilities.cs" LinkBase="Forms" />
1617
<Compile Include="$(ComponentsSharedSourceRoot)src\ExpressionFormatting\**\*.cs" LinkBase="Forms\ExpressionFommatting" />
1718
<Compile Include="$(ComponentsSharedSourceRoot)src\DefaultAntiforgeryStateProvider.cs" LinkBase="Forms" />
1819
</ItemGroup>

src/Components/test/E2ETest/Tests/QuickGridTest.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,7 @@ public void PaginatorDisplaysCorrectItemCount()
118118
public void AdditionalAttributesApplied()
119119
{
120120
var grid = app.FindElement(By.CssSelector("#grid > table"));
121-
122-
var idValue = grid.GetAttribute("id");
123-
var styleValue = grid.GetAttribute("style");
124-
var classList = grid.GetAttribute("class")?.Split(" ");
125-
126-
Assert.Equal("quick-grid", idValue);
127-
Assert.Equal("color:red;", styleValue);
128-
Assert.Contains("custom-class", classList);
121+
Assert.Equal("somevalue", grid.GetAttribute("custom-attrib"));
122+
Assert.Contains("custom-class-attrib", grid.GetAttribute("class")?.Split(" "));
129123
}
130124
}

src/Components/test/testassets/BasicTestApp/QuickGridTest/SampleQuickGridComponent.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h3>Sample QuickGrid Component</h3>
44

55
<div id="grid">
6-
<QuickGrid Items="@FilteredPeople" Pagination="@pagination" id="quick-grid" style="color:red;" class="custom-css">
6+
<QuickGrid Items="@FilteredPeople" Pagination="@pagination" custom-attrib="somevalue" class="custom-class-attrib">
77
<PropertyColumn Property="@(p => p.PersonId)" Sortable="true" />
88
<PropertyColumn Property="@(p => p.firstName)" Sortable="true">
99
<ColumnOptions>

0 commit comments

Comments
 (0)