Skip to content

Commit 1b156e6

Browse files
Rename ref
1 parent 7b3b8e7 commit 1b156e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<h3>Sample QuickGrid Component</h3>
44

55
<div id="grid">
6-
<QuickGrid @ref="@quickGrid" Items="@FilteredPeople" Pagination="@pagination" custom-attrib="somevalue" class="custom-class-attrib">
6+
<QuickGrid @ref="@quickGridRef" 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>
1010
<div class="search-box">
1111
<input type="search" autofocus @bind="firstNameFilter" @bind:event="oninput" placeholder="First name..." />
1212
</div>
13-
<button type="button" id="close-column-options" @onclick="@(() => quickGrid.CloseColumnOptionsAsync())">Close Column Options</button>
13+
<button type="button" id="close-column-options" @onclick="@(() => quickGridRef.CloseColumnOptionsAsync())">Close Column Options</button>
1414
</ColumnOptions>
1515
</PropertyColumn>
1616
<PropertyColumn Property="@(p => p.lastName)" Sortable="true" />
@@ -24,7 +24,7 @@
2424
record Person(int PersonId, string firstName, string lastName, DateOnly BirthDate);
2525
PaginationState pagination = new PaginationState { ItemsPerPage = 10 };
2626
string firstNameFilter;
27-
QuickGrid<Person> quickGrid;
27+
QuickGrid<Person> quickGridRef;
2828

2929
int ComputeAge(DateOnly birthDate)
3030
=> DateTime.Now.Year - birthDate.Year - (birthDate.DayOfYear < DateTime.Now.DayOfYear ? 0 : 1);

0 commit comments

Comments
 (0)