Skip to content

Commit

Permalink
make CreateDataRequest public
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Jul 30, 2024
1 parent 65567ba commit 8707844
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/LoreSoft.Blazor.Controls/Data/DataComponentBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,9 @@ protected virtual async ValueTask RefreshCoreAsync()
}


protected virtual DataRequest CreateDataRequest(CancellationToken cancellationToken)
public virtual DataRequest CreateDataRequest(CancellationToken cancellationToken = default)
{
var request = new DataRequest(Pager.Page, Pager.PageSize, null, null, cancellationToken);
return request;
return new DataRequest(Pager.Page, Pager.PageSize, null, null, cancellationToken);
}

// used when Data is set directly
Expand Down
2 changes: 1 addition & 1 deletion src/LoreSoft.Blazor.Controls/Data/DataGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ internal void AddColumn(DataColumn<TItem> column)
}


protected override DataRequest CreateDataRequest(CancellationToken cancellationToken)
public override DataRequest CreateDataRequest(CancellationToken cancellationToken = default)
{
var sorts = Columns
.Where(c => c.CurrentSortIndex >= 0)
Expand Down

0 comments on commit 8707844

Please sign in to comment.