Class HtmlHelperInlineEditorExtensions
- Namespace
 - Kentico.PageBuilder.Web.Mvc
 
- Assembly
 - Kentico.Content.Web.Mvc.dll
 
Provides extension methods for HtmlHelperExtensionPoint to simplify inline editor creation.
public static class HtmlHelperInlineEditorExtensions
  - Inheritance
 - 
      objectHtmlHelperInlineEditorExtensions
 
Methods
BeginInlineEditor(HtmlHelperExtensionPoint, string, string, object, string)
Renders beginning tag of inline editor wrapper element.
public static MvcInlineEditor BeginInlineEditor(this HtmlHelperExtensionPoint htmlHelper, string inlineEditorName, string propertyName, object htmlAttributes = null, string wrapperElement = "div")
  Parameters
htmlHelperHtmlHelperExtensionPointHtmlHelper extension.
inlineEditorNamestringThe name of the inline editor used for editing the widget property.
propertyNamestringThe name of the widget property managed by the inline editor.
htmlAttributesobjectAdditional inline editor element attributes.
wrapperElementstringElement in which the inline editor will be wrapped.
Returns
- MvcInlineEditor
 Returns an object representing inline editor.
Exceptions
- ArgumentNullException
 Thrown when
htmlHelperis null.- ArgumentException
 Thrown when
or is null or an empty string. 
EndInlineEditor(HtmlHelperExtensionPoint, string)
Renders ending tag of inline editor wrapper element.
public static void EndInlineEditor(this HtmlHelperExtensionPoint htmlHelper, string wrapperElement = "div")
  Parameters
htmlHelperHtmlHelperExtensionPointHtmlHelper extension.
wrapperElementstringElement in which the inline editor will be wrapped.
Exceptions
- ArgumentNullException
 Thrown when
htmlHelperis null.