Skip to content

Commit

Permalink
ability to load table data manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Modest-as committed Jan 20, 2022
1 parent 5c5a713 commit 75c6974
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Crude/CrudeTable.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected override async Task OnInitializedAsync()
{
_renderer = new CrudeTableFragment<TItem>(ViewModel!);

await _renderer.LoadData();
await Load();
}

private RenderFragment Render()
Expand All @@ -30,5 +30,10 @@ private RenderFragment Render()

return _renderer!.Render(context);
}

public async Task Load()
{
await _renderer!.LoadData();
}
}
}

0 comments on commit 75c6974

Please sign in to comment.