Kendo UI immutables TagHelper EditorImmutablesSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("immutables", ParentTag = "kendo-editor", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("immutables", ParentTag = "richtexteditor-editor", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class EditorImmutablesSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseEditorImmutablesSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-editor name="editor">
<immutables deserialization="myDeserializationCallback" />
</kendo-editor>
<script>
function myDeserializationCallback(){
//handler logic here
}
</script>
Constructors
Initializes a new instance of the EditorImmutablesSettingsTagHelper class.
public EditorImmutablesSettingsTagHelper()
Properties
Callback that allows custom deserialization of an immutable element. The callback accepts two arguments. The DOM element representing the immutable element in the html view and the immutable DOM element, which will be restored.
public string Deserialization { get; set; }
Kendo template or a callback that allows custom serialization of an immutable element. The callback accepts DOM element as only parameter and is expected to return the HTML source of a DOM element.
public string Serialization { get; set; }
Kendo template or a callback that allows custom serialization of an immutable element. The callback accepts DOM element as only parameter and is expected to return the HTML source of a DOM element.
public string SerializationHandler { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.