Table of Contents

Class FormFieldTagHelper

Namespace
Kentico.Content.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Returns HTML markup for given form component. The markup contains a label and an editing element representing the form component given.

public class FormFieldTagHelper : HtmlHelperAsyncExtensionTagHelper
Inheritance
object
TagHelper
HtmlHelperAsyncExtensionTagHelper
FormFieldTagHelper
Extension Methods

Constructors

FormFieldTagHelper(IHtmlHelper)

Initializes a new instance of the FormFieldTagHelper class.

public FormFieldTagHelper(IHtmlHelper htmlHelper)

Parameters

htmlHelper IHtmlHelper

The HTML helper.

Properties

FormFieldComponent

The form component to render the markup for.

public FormComponent FormFieldComponent { get; set; }

Property Value

FormComponent

FormFieldRenderingConfiguration

Configuration for the form field rendering. If null, Default is used.

public FormFieldRenderingConfiguration FormFieldRenderingConfiguration { get; set; }

Property Value

FormFieldRenderingConfiguration

Methods

CallHtmlHelper()

Used to call Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper Kentico extension point methods.

protected override Task<IHtmlContent> CallHtmlHelper()

Returns

Task<IHtmlContent>