Blazor how to pass arguments to onclick function?

前端 未结 4 1532
执笔经年
执笔经年 2021-02-03 16:55

I\'d want to make button onclick function that takes some input.



@functions
{
    pu         


        
4条回答
  •  天涯浪人
    2021-02-03 17:23

    At Sign on onclick specifies it's a C# function:

    @onclick = "@(() => test(i, 5*i))"
    

提交回复
热议问题