Button Events
This article explains the events available in the Telerik Button for Blazor:
OnClick
The OnClick
event fires when the user clicks or taps the button.
Handle the button click
@someVariable
<TelerikButton OnClick="@myHandler">Click me!</TelerikButton>
@code {
MarkupString someVariable;
void myHandler()
{
someVariable = new MarkupString(DateTime.Now.ToString());
}
}
The event is an
EventCallback
and it can be synchronous (returnvoid
), or it can also be asynchronous and returnasync Task
.