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 CurrLoading { get; set; } = new List(); #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 } }