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/Utilities/ActivatableCallback.cs

16 lines
336 B

using Connected.Components;
using Microsoft.AspNetCore.Components.Web;
namespace Connected
{
public class ActivatableCallback : IActivatable
{
public Action<object, MouseEventArgs> ActivateCallback { get; set; }
public void Activate(object sender, MouseEventArgs args)
{
ActivateCallback?.Invoke(sender, args);
}
}
}