Skip to content

Commit

Permalink
Fix #3249 indices->args
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Jan 27, 2025
1 parent fb1221b commit 4408f0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</blockquote>

<p>Here is an example of how to reorder your list when the OnUpdate is fired...</p>
<CodeSnippet>private void SortList(FluentSortableListEventArgs indices)
<CodeSnippet>private void SortList(FluentSortableListEventArgs args)
{
if (args is null || args.OldIndex == args.NewIndex)
{
Expand Down Expand Up @@ -97,7 +97,7 @@

<DemoSection Component="typeof(SortableListFiltering)" Title="Filtering">
<Description>
In the lists below, you cannot drag the item in the accented color. This is because these items are filtered out with an <code>ItemFilter</code> parameter (of type <code>Func&lt;TItem, bool&gt;</code>).
In the lists below, you cannot drag the item in the accented color. This is because these items are filtered out with an <code>ItemFilter</code> parameter (of type <code>Func&lt;TItem, bool&gt;</code>).
The <code>ItemFilter</code> parameter is a function that takes an item and returns a boolean value. If the function returns true, the item is excluded from dragging in the list. If the function returns false, the item can be dragged.
In the left list below, the <code>ItemFilter</code> parameter is set to filter out a random item from the list. In the right list, the <code>ItemFilter</code> parameter is set to filter out items with an Id larger than 6.
See the Razor tab for how the different functions are being specified.
Expand Down

0 comments on commit 4408f0a

Please sign in to comment.