HtmlHelperInlineEditorExtensionsBeginInlineEditor Method |
Renders beginning tag of inline editor wrapper element.
Namespace: Kentico.PageBuilder.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax public static MvcInlineEditor BeginInlineEditor(
this HtmlHelperExtensionPoint htmlHelper,
string inlineEditorName,
string propertyName,
Object htmlAttributes = null,
string wrapperElement = "div"
)
Parameters
- htmlHelper
- Type: Kentico.Web.MvcHtmlHelperExtensionPoint
HtmlHelper extension. - inlineEditorName
- Type: SystemString
The name of the inline editor used for editing the widget property. - propertyName
- Type: SystemString
The name of the widget property managed by the inline editor. - htmlAttributes (Optional)
- Type: SystemObject
Additional inline editor element attributes. - wrapperElement (Optional)
- Type: SystemString
Element in which the inline editor will be wrapped.
Return Value
Type:
MvcInlineEditorReturns an object representing inline editor.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HtmlHelperExtensionPoint. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when htmlHelper is null. |
ArgumentException | Thrown when or is null or an empty string. |
See Also