Files
2025-11-11 09:49:24 +01:00

46 lines
1.1 KiB
C#

using Microsoft.AspNetCore.Components;
namespace Test.UI.Components.Compo
{
public partial class ChildObj
{
#region Public Properties
[Parameter]
public string CssClass { get; set; } = "";
[Parameter]
public string Message { get; set; } = "";
[Parameter]
public string Name { get; set; } = "NONE";
[Parameter]
public string LoadPar { get; set; } = "";
[CascadingParameter(Name = "CurrLoading")]
public List<string> CurrLoading { get; set; } = new List<string>();
#endregion Public Properties
#region Protected Fields
protected string LocalInfo = "";
#endregion Protected Fields
#region Protected Methods
protected override void OnParametersSet()
{
LocalInfo = $"Updated on {DateTime.Now:HH:ss.fff}";
}
private bool IsLoading
{
get => CurrLoading != null && CurrLoading.Count > 0 && CurrLoading.Contains(LoadPar);
}
#endregion Protected Methods
}
}