Skip to content

Commit

Permalink
add missing using
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderJames authored and SteveSandersonMS committed Aug 14, 2023
1 parent f125109 commit 05e8024
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<!-- Bundle the theme CSS files as if they were scoped, even though they aren't -->
<ThemeCssFiles Include="Themes\*.css" />
<_CurrentProjectDiscoveredScopedCssFiles Include="@(ThemeCssFiles)" RelativePath="%(Identity)" BasePath="_content/$(AssemblyName)" />

<Compile Include="$(ComponentsSharedSourceRoot)src\AttributeUtilities.cs" LinkBase="Infrastructure" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.AspNetCore.Components.QuickGrid.Infrastructure;
using Microsoft.AspNetCore.Components.Web.Virtualization;
using Microsoft.JSInterop;
using Microsoft.AspNetCore.Components.Forms;

namespace Microsoft.AspNetCore.Components.QuickGrid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="$(ComponentsSharedSourceRoot)src\AttributeUtilities.cs" LinkBase="Forms" />
<Compile Include="$(ComponentsSharedSourceRoot)src\ExpressionFormatting\**\*.cs" LinkBase="Forms\ExpressionFommatting" />
<Compile Include="$(ComponentsSharedSourceRoot)src\DefaultAntiforgeryStateProvider.cs" LinkBase="Forms" />
</ItemGroup>
Expand Down
10 changes: 2 additions & 8 deletions src/Components/test/E2ETest/Tests/QuickGridTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,7 @@ public void PaginatorDisplaysCorrectItemCount()
public void AdditionalAttributesApplied()
{
var grid = app.FindElement(By.CssSelector("#grid > table"));

var idValue = grid.GetAttribute("id");
var styleValue = grid.GetAttribute("style");
var classList = grid.GetAttribute("class")?.Split(" ");

Assert.Equal("quick-grid", idValue);
Assert.Equal("color:red;", styleValue);
Assert.Contains("custom-class", classList);
Assert.Equal("somevalue", grid.GetAttribute("custom-attrib"));
Assert.Contains("custom-class-attrib", grid.GetAttribute("class")?.Split(" "));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h3>Sample QuickGrid Component</h3>

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

0 comments on commit 05e8024

Please sign in to comment.