Thanks for this. For future reference I think it would be better not to name your objects as Alert, Display, Component etc. because for beginners it becomes harder to determine what is a variable and what is actually part of the language. I'd use names such as myAlert displayAlert etc. FWIW
The counter component defines an EventCallBack that the Index then assigns a method with the same Parameter to so that he gets notified about the current state of the counter.
Thanks for this. For future reference I think it would be better not to name your objects as Alert, Display, Component etc. because for beginners it becomes harder to determine what is a variable and what is actually part of the language.
I'd use names such as myAlert displayAlert etc. FWIW
thanks for the video
my question is how we can pass multiple parameter for eventcallback ?
We can do it with a Tuple or a class that encapsulates the desired parameters
Mr@@DavidSeesSharp did you have sample code for it ?
github.com/DannyAinge44/BlazorEventCallBackTupleDemo
The counter component defines an EventCallBack that the Index then assigns a method with the same Parameter to so that he gets notified about the current state of the counter.
thank you Mr@@DavidSeesSharp,
I really appreciate for your help