Skip to content

Required parameters to blazor components #11815

Closed
@montyclt

Description

@montyclt

Is your feature request related to a problem? Please describe.

I'm building a component where optional parameter doesn't make sense.

Describe the solution you'd like

Add required parameter to Parameter attribute

[Parameter(required = true)]
protected string Name { get; set; }

Metadata

Metadata

Assignees

Labels

Components Big RockThis issue tracks a big effort which can span multiple issuesDoneThis issue has been fixedPriority:2Work that is important, but not critical for the releaseUser StoryA single user-facing feature. Can be grouped under an epic.affected-mostThis issue impacts most of the customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-component-modelAny feature that affects the component model for Blazor (Parameters, Rendering, Lifecycle, etc)severity-minorThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions