// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using MagMan.Data.Services; using Microsoft.AspNetCore.Components; namespace MagMan.UI.Components { public partial class SearchMod { #region Public Properties [Parameter] public EventCallback searchUpdated { get; set; } [Parameter] public string searchVal { get { return MessageService.SearchVal; } set { MessageService.SearchVal = value; reportChange(); } } #endregion Public Properties #region Private Methods private void reportChange() { searchUpdated.InvokeAsync(searchVal); } private void reset() { searchVal = ""; } #endregion Private Methods } }