-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Blazor Html WebComponents make binding/setting Array/Object Properties easier #27654
Copy link
Copy link
Closed
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: DesignThis issue requires design work before implementating.This issue requires design work before implementating.Needs: SpecIndicates that a spec defining user experience is requiredIndicates that a spec defining user experience is requiredStatus: Resolvedaffected-very-fewThis issue impacts very few customersThis issue impacts very few customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing oneseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Metadata
Metadata
Assignees
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: DesignThis issue requires design work before implementating.This issue requires design work before implementating.Needs: SpecIndicates that a spec defining user experience is requiredIndicates that a spec defining user experience is requiredStatus: Resolvedaffected-very-fewThis issue impacts very few customersThis issue impacts very few customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing oneseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hello AspNetCore Team,
it is possible to define for Html Web Components complex objects or arrays as parameters.
Like if I want to pass a list of objects as table content or a list of links in a web component.
Here my sample component:
Now currently if I want to set this property I need the following code:
Index.razor:
Javascript:
How it could be done differently:
Could this be improved?
I build a repository with differnet html web component issues, there are also other issues in there :
https://github.com/MichaelPeter/BlazorWebComponentTestApp
importaint are
https://github.com/MichaelPeter/BlazorWebComponentTestApp/blob/master/Pages/Index.razor
and
https://github.com/MichaelPeter/BlazorWebComponentTestApp/blob/master/wwwroot/scripts/TestWebComponents.js
Related:
#27070
#27651