File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src
testassets/BasicTestApp/QuickGridTest Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
#nullable enable
2
- Microsoft.AspNetCore.Components.QuickGrid.QuickGrid<TGridItem>.CloseColumnOptionsAsync () -> System.Threading.Tasks.Task!
2
+ Microsoft.AspNetCore.Components.QuickGrid.QuickGrid<TGridItem>.HideColumnOptionsAsync () -> System.Threading.Tasks.Task!
3
3
Microsoft.AspNetCore.Components.QuickGrid.QuickGrid<TGridItem>.RowClass.get -> System.Func<TGridItem, string?>?
4
4
Microsoft.AspNetCore.Components.QuickGrid.QuickGrid<TGridItem>.RowClass.set -> void
Original file line number Diff line number Diff line change 10
10
@{ FinishCollectingColumns (); }
11
11
<ColumnsCollectedNotifier TGridItem =" TGridItem" />
12
12
13
- <table theme =" @Theme" aria-rowcount =" @(_ariaBodyRowCount + 1)" @ref =" _tableReference" @onclosecolumnoptions =" CloseColumnOptionsAsync " @attributes =" AdditionalAttributes" class =" @GridClass()" >
13
+ <table theme =" @Theme" aria-rowcount =" @(_ariaBodyRowCount + 1)" @ref =" _tableReference" @onclosecolumnoptions =" HideColumnOptionsAsync " @attributes =" AdditionalAttributes" class =" @GridClass()" >
14
14
<thead >
15
15
<tr >
16
16
@_renderColumnHeaders
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ public Task ShowColumnOptionsAsync(ColumnBase<TGridItem> column)
280
280
/// <summary>
281
281
/// Closes the <see cref="ColumnBase{TGridItem}.ColumnOptions"/> UI that was previously displayed.
282
282
/// </summary>
283
- public Task CloseColumnOptionsAsync ( )
283
+ public Task HideColumnOptionsAsync ( )
284
284
{
285
285
_displayOptionsForColumn = null ;
286
286
StateHasChanged ( ) ;
Original file line number Diff line number Diff line change @@ -177,14 +177,14 @@ public void CanCloseColumnOptionsByBlurring()
177
177
}
178
178
179
179
[ Fact ]
180
- public void CanCloseColumnOptionsByCloseColumnOptionsAsync ( )
180
+ public void CanCloseColumnOptionsByHideColumnOptionsAsync ( )
181
181
{
182
182
var grid = app . FindElement ( By . CssSelector ( "#grid > table" ) ) ;
183
183
var firstNameColumnOptionsButton = grid . FindElement ( By . CssSelector ( "thead > tr > th:nth-child(2) > div > button[title=\" Column options\" ]" ) ) ;
184
184
185
185
firstNameColumnOptionsButton . Click ( ) ;
186
186
187
- // Click the button inside the column options popup to close, which calls QuickGrid.CloseColumnOptionsAsync
187
+ // Click the button inside the column options popup to close, which calls QuickGrid.HideColumnOptionsAsync
188
188
grid . FindElement ( By . CssSelector ( "#close-column-options" ) ) . Click ( ) ;
189
189
190
190
var firstNameSearchSelector = "#grid > table > thead > tr > th:nth-child(2) input[type=search]" ;
Original file line number Diff line number Diff line change 10
10
<div class =" search-box" >
11
11
<input type =" search" autofocus @bind =" firstNameFilter" @bind:event =" oninput" placeholder =" First name..." />
12
12
</div >
13
- <button type =" button" id =" close-column-options" @onclick =" @(() => quickGridRef.CloseColumnOptionsAsync ())" >Close Column Options</button >
13
+ <button type =" button" id =" close-column-options" @onclick =" @(() => quickGridRef.HideColumnOptionsAsync ())" >Close Column Options</button >
14
14
</ColumnOptions >
15
15
</PropertyColumn >
16
16
<PropertyColumn Property =" @(p => p.LastName)" Sortable =" true" />
You can’t perform that action at this time.
0 commit comments