exciting-aftermath/Portfolio.WebUI.Server/Components/Component/Pokemon Components/PokemonAddButton.razor.cs

20 lines
457 B
C#

using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
namespace Portfolio.WebUI.Server.Components.Component.Pokemon_Components
{
public partial class PokemonAddButton
{
[Parameter]
public EventCallback OnAdd { get; set; }
[Parameter]
public int IconSize { get; set; } = 64;
private async Task HandleClick()
{
await OnAdd.InvokeAsync();
}
}
}