-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Syntax for writing a dictionary of attributes onto an element #5071
Copy link
Copy link
Closed
Labels
Components Big RockThis issue tracks a big effort which can span multiple issuesThis issue tracks a big effort which can span multiple issuesDoneThis issue has been fixedThis issue has been fixedNeeds: DesignThis issue requires design work before implementating.This issue requires design work before implementating.area-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 onefeature-razor-pages
Milestone
Metadata
Metadata
Assignees
Labels
Components Big RockThis issue tracks a big effort which can span multiple issuesThis issue tracks a big effort which can span multiple issuesDoneThis issue has been fixedThis issue has been fixedNeeds: DesignThis issue requires design work before implementating.This issue requires design work before implementating.area-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 onefeature-razor-pages
Type
Fields
Give feedbackNo fields configured for issues without a type.
This issue is being opened by request of @SteveSandersonMS Please see the full issue details https://github.com/aspnet/Blazor/issues/735 in the Blazor Repo.
The summary is that will be nice to be able to pass arbitrary attributes from a custom component down to an HTML element. For example:
<MyComponent id="myid" />in the component render it as:
<button id="myid" />without having to code every single attribute possible. Not mention allowing attributes such data-* to be passed down.