New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI immutables TagHelper EditorImmutablesSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@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.

C#
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.

C#
public string Deserialization { get; set; }

Enables or disables the configuration.

C#
public bool? Enabled { 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.

C#
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.

C#
public string SerializationHandler { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>