diff --git a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/PublicAPI.Unshipped.txt b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/PublicAPI.Unshipped.txt index ada74ec6a845..a5806f90a9db 100644 --- a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/PublicAPI.Unshipped.txt +++ b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/PublicAPI.Unshipped.txt @@ -1,4 +1,4 @@ #nullable enable -Microsoft.AspNetCore.Components.QuickGrid.QuickGrid.CloseColumnOptionsAsync() -> System.Threading.Tasks.Task! +Microsoft.AspNetCore.Components.QuickGrid.QuickGrid.HideColumnOptionsAsync() -> System.Threading.Tasks.Task! Microsoft.AspNetCore.Components.QuickGrid.QuickGrid.RowClass.get -> System.Func? Microsoft.AspNetCore.Components.QuickGrid.QuickGrid.RowClass.set -> void \ No newline at end of file diff --git a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor index 2200bf600216..5228ed1d2b00 100644 --- a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor +++ b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor @@ -10,7 +10,7 @@ @{ FinishCollectingColumns(); } - +
@_renderColumnHeaders diff --git a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.cs b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.cs index c5fcebc1fc97..363ad846cbf7 100644 --- a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.cs +++ b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.cs @@ -280,7 +280,7 @@ public Task ShowColumnOptionsAsync(ColumnBase column) /// /// Closes the UI that was previously displayed. /// - public Task CloseColumnOptionsAsync() + public Task HideColumnOptionsAsync() { _displayOptionsForColumn = null; StateHasChanged(); diff --git a/src/Components/test/E2ETest/Tests/QuickGridTest.cs b/src/Components/test/E2ETest/Tests/QuickGridTest.cs index 3e071b8686c7..9e470e838007 100644 --- a/src/Components/test/E2ETest/Tests/QuickGridTest.cs +++ b/src/Components/test/E2ETest/Tests/QuickGridTest.cs @@ -177,14 +177,14 @@ public void CanCloseColumnOptionsByBlurring() } [Fact] - public void CanCloseColumnOptionsByCloseColumnOptionsAsync() + public void CanCloseColumnOptionsByHideColumnOptionsAsync() { var grid = app.FindElement(By.CssSelector("#grid > table")); var firstNameColumnOptionsButton = grid.FindElement(By.CssSelector("thead > tr > th:nth-child(2) > div > button[title=\"Column options\"]")); firstNameColumnOptionsButton.Click(); - // Click the button inside the column options popup to close, which calls QuickGrid.CloseColumnOptionsAsync + // Click the button inside the column options popup to close, which calls QuickGrid.HideColumnOptionsAsync grid.FindElement(By.CssSelector("#close-column-options")).Click(); var firstNameSearchSelector = "#grid > table > thead > tr > th:nth-child(2) input[type=search]"; diff --git a/src/Components/test/testassets/BasicTestApp/QuickGridTest/SampleQuickGridComponent.razor b/src/Components/test/testassets/BasicTestApp/QuickGridTest/SampleQuickGridComponent.razor index 98bb2a931256..33118db61f51 100644 --- a/src/Components/test/testassets/BasicTestApp/QuickGridTest/SampleQuickGridComponent.razor +++ b/src/Components/test/testassets/BasicTestApp/QuickGridTest/SampleQuickGridComponent.razor @@ -10,7 +10,7 @@ - +