Exentials.MdcBlazor.Tools by Gambarotto Damiano

<PackageReference Include="Exentials.MdcBlazor.Tools" Version="0.7.8-alpha" />

 DataTableColumn

using Microsoft.AspNetCore.Components; namespace Exentials.MdcBlazor { public class DataTableColumn { [CascadingParameter] private DataColumCollection Columns { get; set; } [Parameter] public string Header { get; set; } [Parameter] public string FieldName { get; set; } [Parameter] public string Format { get; set; } [Parameter] public bool Numeric { get; set; } protected override void OnInitialized() { this.OnInitialized(); if (Columns != null) Columns.Add(new DataColumn { Header = Header, FieldName = FieldName, Format = Format, Numeric = Numeric }); } public DataTableColumn() : this() { } } }