PropertyTagHelper Class

PropertyTagHelper Class

Tag helper for rendering property values for several html elements.

[HtmlTargetElement(Attributes = "re-property")]
public class PropertyTagHelper: TagHelper

Inheritance  TagHelper PropertyTagHelper


Name Description
Content Gets or sets the action to take if the element already has existing content. Default behavior is to replace any existing content.
Default Gets or sets the action to take if the property and default values are empty.
DefaultValue Gets or sets the default value to render if the property value is empty.
Property Gets or sets the property value to render the element content with.


Name Description
Process(TagHelperContext, TagHelperOutput)