mirror of https://github.com/abpframework/abp.git
5 changed files with 98 additions and 24 deletions
@ -0,0 +1,23 @@ |
|||||
|
using System.Linq; |
||||
|
using Blazorise.DataGrid; |
||||
|
using Localization.Resources.AbpUi; |
||||
|
using Microsoft.AspNetCore.Components; |
||||
|
using Microsoft.Extensions.Localization; |
||||
|
|
||||
|
namespace Volo.Abp.BlazoriseUI.Components |
||||
|
{ |
||||
|
public class DataGridEntityActionsColumn<TItem> : DataGridColumn<TItem> |
||||
|
{ |
||||
|
[Inject] |
||||
|
public IStringLocalizer<AbpUiResource> UiLocalizer { get; set; } |
||||
|
|
||||
|
protected override void OnInitialized() |
||||
|
{ |
||||
|
base.OnInitialized(); |
||||
|
Caption = UiLocalizer["Actions"]; |
||||
|
Width = "150px"; |
||||
|
Sortable = false; |
||||
|
Field = typeof(TItem).GetProperties().First().Name; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue