Table of Contents

Class ElementRenderingConfiguration

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

Configuration describing rendering of an optional wrapping HTML element around Form builder's element or custom HTML code.

public class ElementRenderingConfiguration
Inheritance
object
ElementRenderingConfiguration
Extension Methods

Properties

CONTENT_PLACEHOLDER

Defines a placeholder for wrapped elements if CustomHtmlString is used.

public static string CONTENT_PLACEHOLDER { get; }

Property Value

string
See Also

ChildConfiguration

Gets or sets child element rendering configuration. Use this property to nest multiple wrapping elements.

public ElementRenderingConfiguration ChildConfiguration { get; set; }

Property Value

ElementRenderingConfiguration

Remarks

Property value is ignored if CustomHtmlString value is set.

CustomHtmlString

Get or sets custom HTML string used instead of wrapping element defined in ElementName. Within a custom HTML code must be used CONTENT_PLACEHOLDER value.

public string CustomHtmlString { get; set; }

Property Value

string

Remarks

Takes precedence over ElementName, HtmlAttributes and ChildConfiguration.

See Also

ElementName

Gets or sets element name to be rendered.

public string ElementName { get; set; }

Property Value

string

Remarks

Property value is ignored if CustomHtmlString value is set.

See Also

HtmlAttributes

Gets or sets optional attributes that should be added to the element. An empty dictionary by default.

public IDictionary<string, object> HtmlAttributes { get; set; }

Property Value

IDictionary<string, object>

Remarks

Property value is ignored if CustomHtmlString value is set.