Skip to content

Instantly share code, notes, and snippets.

@zHaytam
Created March 21, 2021 10:57
Show Gist options
  • Save zHaytam/86fbc309a4896f4ef46215c801293c5c to your computer and use it in GitHub Desktop.
Save zHaytam/86fbc309a4896f4ef46215c801293c5c to your computer and use it in GitHub Desktop.
protected override void BuildRenderTree(RenderTreeBuilder builder)
{
// Other stuff
builder.AddAttribute(5, "onclick", EventCallback.Factory.Create<MouseEventArgs>(this, SomeMethod));
// Other stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment