App modernization - missing functionality?
See original GitHub issueMy current app uses Microsoft’s flavor of that day, about 8 years ago or so. Maybe one could say an early implementation of Razor.
@foreach (var sname in services) { <input class="fserviceradio" required="required" type="radio" name="fservice" **data-servval="@sname.billingRate"** value="@sname.Id" style="margin-top: 15px; " /> }
I left out the <label> tag , but in general this is all very recognizable, except for “data-servval”. This is the piece of existing functionality I have not been able to duplicate with MudBlazor
At the time, anything attribute starting with “data-…” would ride along and I could do a Request to find out what its value was.
How can this be implemented in MudBlazor? Basically I to be able to bind a second or third property of sname
Any suggestions would be appreciated.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Sorry, but this it not related to MudBlazor at all. You should learn how to get and set data from components in Blazor. Basically, you pass parameters to your components and you get the values inside your components as properties. You can use MudBlazor components just to compose your own components, that are able to receive what you want and store it, so you can retrieve it.
Yes, perfect.
Thnx!