Examples

<SfButton @onclick="DoSomething">Update</SfButton>

<SfButton CssClass="e-primary" @onclick="@(e => DoSomething2())"><i class="fa fa-trash"></i> Discard</SfButton>

<SfButton CssClass="e-primary" @onclick="@(e => AddItemToCart(item.GlobalId))">Add to Cart</SfButton>
  public async Task DoSomething(Microsoft.AspNetCore.Components.Web.MouseEventArgs args)
        {
           
        }

 public async Task DoSomething2()
        {
           
        }

        public async Task AddItemToCart(string pGlobalId)
        {
    
        }

Last modified: April 24, 2021

Author

Comments

Write a Reply or Comment