Skip to content

Blazor Pass EventCallback as Class Property To Component #29668

Answered by godshades
godshades asked this question in Q&A
Discussion options

You must be logged in to vote

EventCallback evt1 = EventCallback.Factory.Create(this, Press1);
ListModal.Add(new ModalDetails { Class = "", FistText = "A", OnPress = evt1 });

this work for me

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by godshades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant