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.
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
|
|
|
|
|
namespace Connected.Components;
|
|
|
|
|
|
|
|
|
|
public abstract class ColumnBase : ComponentBase
|
|
|
|
|
{
|
|
|
|
|
public enum Rendermode
|
|
|
|
|
{
|
|
|
|
|
Header, Item, Edit, Footer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[CascadingParameter(Name = "Mode")]
|
|
|
|
|
public Rendermode Mode { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter] public bool Visible { get; set; } = true;
|
|
|
|
|
[Parameter] public string HeaderText { get; set; }
|
|
|
|
|
|
|
|
|
|
protected bool IsDefault<T>(T value)
|
|
|
|
|
{
|
|
|
|
|
return EqualityComparer<T>.Default.Equals(value, default(T));
|
|
|
|
|
}
|
|
|
|
|
}
|