Class DisplayHelper
Adds the display markup of a model property expression specified by the
xn-display-for attribute to
the beginning of the tag. The tag will always be rendered with a separate start and end tag.
Inheritance
Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
DisplayHelper
Namespace: XploRe.AspNetCore.Mvc.TagHelpers
Assembly: XploRe.AspNetCore.Mvc.TagHelpers.dll
Syntax
public class DisplayHelper : TagHelper
Constructors
| Name | Description |
|---|---|
| DisplayHelper(IHtmlHelper) | Initialises a new DisplayHelper instance. |
Properties
| Name | Description |
|---|---|
| For | Name of current model property to retrieve the display markup for. |
| HtmlHelper | The cached Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper service instance. |
| ViewContext | The automatically assigned ViewContext instance. |
Methods
| Name | Description |
|---|---|
| Process(TagHelperContext, TagHelperOutput) |