Events in Blazor

1 · Maksym Postument · Oct. 15, 2020, 8:37 a.m.
Hello! Let’s see how you can transfer data from one component to another. Button I will create a component called ThumbButton which will contain two buttons. Depending on which button is pressed, the corresponding method will be called and the data will be transferred to the parrent component. @Onclick specifies which method will be executed when the button is pressed. To pass data to the parrent component, a property of type EventCallback<Thumb> is used, where Thumb is enum....