Skip to content

DisplayNameFor support in Blazor #49147

Open
@danroth27

Description

@danroth27

MVC & Razor Pages have the DisplayNameFor HTML helper. Blazor doesn't currently have any helpers for creating a display name for model properties or expressions. This would be useful for scaffolding form field labels based on a model type, where you pick up the display name from attributes, like [Display(Name="Release date")], on the model. QuickGrid has some logic for displaying column headings based on a model type, but it doesn't support the DisplayAttribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions