@using Shared.DTOs
@context.ID
@context.iinn
@context.acn
@context.trmn
@context.pmt
@context.trn
@context.pcn
@context.pid
@context.PaymentDateTime
@*
@context.adis
*@
@context.pv
@code {
[Inject] ModalService ModalService { get; set; } = default!;
[Parameter] public IEnumerable InvoicePays { get; set; }
private async Task> DataProvider(GridDataProviderRequest request)
{
if (InvoicePays is null) // pull employees only one time for client-side filtering, sorting, and paging
InvoicePays = GetInvoicePays(); // call a service or an API to pull the employees
return await Task.FromResult(request.ApplyTo(InvoicePays));
}
private async Task OnRowClick(GridRowEventArgs args)
{
await ModalService.ShowAsync(new ModalOption { Type = ModalType.Primary, Title = "Event: Row Click", Message = $"Id: {args.Item.ID}, Name: {args.Item.PaymentDateTime}" });
}
private IEnumerable GetInvoicePays()
{
return new List();
}
}