Browse Source
Localize "No data available" message in AbpExtensibleDataGrid component.
pull/22155/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
6 additions and
2 deletions
-
framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor
-
framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor.cs
|
|
|
@ -22,7 +22,7 @@ |
|
|
|
<EmptyTemplate> |
|
|
|
<Row Class="w-100 align-items-center" Style="height: 150px;"> |
|
|
|
<Column> |
|
|
|
<Heading Size="HeadingSize.Is4" TextAlignment="TextAlignment.Center">No data available</Heading> |
|
|
|
<Heading Size="HeadingSize.Is4" TextAlignment="TextAlignment.Center">@UiLocalizer["NoDataAvailableInDatatable"]</Heading> |
|
|
|
</Column> |
|
|
|
</Row> |
|
|
|
</EmptyTemplate> |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic; |
|
|
|
using System.Text.RegularExpressions; |
|
|
|
using Blazorise.DataGrid; |
|
|
|
using Blazorise.Extensions; |
|
|
|
using Localization.Resources.AbpUi; |
|
|
|
using Microsoft.AspNetCore.Components; |
|
|
|
using Microsoft.Extensions.Localization; |
|
|
|
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 bool Responsive { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Parameter] public bool AutoGenerateColumns { get; set; } |
|
|
|
|
|
|
|
[Inject] |
|
|
|
public IStringLocalizerFactory StringLocalizerFactory { get; set; } = default!; |
|
|
|
|
|
|
|
[Inject] |
|
|
|
public IStringLocalizer<AbpUiResource> UiLocalizer { get; set; } = default!; |
|
|
|
|
|
|
|
protected virtual RenderFragment RenderCustomTableColumnComponent(Type type, object data) |
|
|
|
{ |
|
|
|
return (builder) => |
|
|
|
|