Class TextFieldTagHelper
Version: 21.x
Tag helper that renders text for a Sitecore TextField.
Inheritance
System.Object
TextFieldTagHelper
Namespace: Sitecore.AspNet.RenderingEngine.TagHelpers.Fields
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class TextFieldTagHelper : TagHelperConstructors
TextFieldTagHelper()
Declaration
RequestResponse
public TextFieldTagHelper()Properties
ConvertNewLines
Gets or sets a value indicating whether to convert line endings to
tags.
Declaration
RequestResponse
public bool ConvertNewLines { get; set; }Property Value
| Type | Description |
|---|---|
| System.Boolean |
Editable
Gets or sets a value indicating whether the field can be edited.
Declaration
RequestResponse
public bool Editable { get; set; }Property Value
| Type | Description |
|---|---|
| System.Boolean |
For
Gets or sets the model value.
Declaration
RequestResponse
public ModelExpression For { get; set; }Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression |
Methods
Process(TagHelperContext, TagHelperOutput)
Declaration
RequestResponse
public override void Process(TagHelperContext context, TagHelperOutput output)Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext | context | |
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput | output |