C
C#10mo ago
jacks

blazor app need help passing parameter into method call

hi
No description
12 Replies
jacks
jacksOP10mo ago
No description
jacks
jacksOP10mo ago
ok so basically display each song and have a button that can delete that song i just don't know how to put the current song into the method call ☹️ or if there would be a better way to do this i'm open to anything
Anu6is
Anu6is10mo ago
Just call the method with the parameter like you normally would
jacks
jacksOP10mo ago
you can't in blazor i thik theres special syntax but idk it
jacks
jacksOP10mo ago
No description
Anu6is
Anu6is10mo ago
@(() => RemoveSong(song))
jacks
jacksOP10mo ago
No description
Anu6is
Anu6is10mo ago
what does your code look like?
jacks
jacksOP10mo ago
i tried a bunch of differnt combinations with that and none of them worked
jacks
jacksOP10mo ago
No description
No description
No description
SinFluxx
SinFluxx10mo ago
@onclick="@(() => RemoveSong(song))"
jacks
jacksOP10mo ago
tysm
Want results from more Discord servers?
Add your server