|
|
@ -3,6 +3,7 @@ using System.Collections.Generic; |
|
|
using System.Text.RegularExpressions; |
|
|
using System.Text.RegularExpressions; |
|
|
using Blazorise.DataGrid; |
|
|
using Blazorise.DataGrid; |
|
|
using Blazorise.Extensions; |
|
|
using Blazorise.Extensions; |
|
|
|
|
|
using Localization.Resources.AbpUi; |
|
|
using Microsoft.AspNetCore.Components; |
|
|
using Microsoft.AspNetCore.Components; |
|
|
using Microsoft.Extensions.Localization; |
|
|
using Microsoft.Extensions.Localization; |
|
|
using Volo.Abp.AspNetCore.Components.Web.Extensibility.TableColumns; |
|
|
using Volo.Abp.AspNetCore.Components.Web.Extensibility.TableColumns; |
|
|
@ -35,12 +36,15 @@ public partial class AbpExtensibleDataGrid<TItem> : ComponentBase |
|
|
[Parameter] public string? Class { get; set; } |
|
|
[Parameter] public string? Class { get; set; } |
|
|
|
|
|
|
|
|
[Parameter] public bool Responsive { get; set; } |
|
|
[Parameter] public bool Responsive { get; set; } |
|
|
|
|
|
|
|
|
[Parameter] public bool AutoGenerateColumns { get; set; } |
|
|
[Parameter] public bool AutoGenerateColumns { get; set; } |
|
|
|
|
|
|
|
|
[Inject] |
|
|
[Inject] |
|
|
public IStringLocalizerFactory StringLocalizerFactory { get; set; } = default!; |
|
|
public IStringLocalizerFactory StringLocalizerFactory { get; set; } = default!; |
|
|
|
|
|
|
|
|
|
|
|
[Inject] |
|
|
|
|
|
public IStringLocalizer<AbpUiResource> UiLocalizer { get; set; } = default!; |
|
|
|
|
|
|
|
|
protected virtual RenderFragment RenderCustomTableColumnComponent(Type type, object data) |
|
|
protected virtual RenderFragment RenderCustomTableColumnComponent(Type type, object data) |
|
|
{ |
|
|
{ |
|
|
return (builder) => |
|
|
return (builder) => |
|
|
|