You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Table/Td.razor.cs

24 lines
558 B

2 years ago
using Connected.Utilities;
using Microsoft.AspNetCore.Components;
namespace Connected.Components;
public partial class Td : UIComponent
{
protected string Classname =>
new CssBuilder("mud-table-cell")
.AddClass("mud-table-cell-hide", HideSmall)
.AddClass(Class)
.Build();
[Parameter] public RenderFragment ChildContent { get; set; }
[Parameter] public string DataLabel { get; set; }
/// <summary>
/// Hide cell when breakpoint is smaller than the defined value in table.
/// </summary>
[Parameter] public bool HideSmall { get; set; }
}