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

Kendo UI editable TagHelper DiagramEditableSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("editable", ParentTag = "kendo-diagram", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("drag", new string[] { "resize", "rotate", "tools", "diagram-shape-template" })]
[SuppressTagRendering]
public class DiagramEditableSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseDiagramEditableSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

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-diagram name="diagram">
    <editable connection-template="<div>Edit Connection</div>">
    </editable>
</kendo-diagram>

Constructors

Initializes a new instance of the DiagramEditableSettingsTagHelper class.

C#
public DiagramEditableSettingsTagHelper()

Properties

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

C#
public string ConnectionTemplate { get; set; }

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string ConnectionTemplateHandler { get; set; }

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them. This option expects the ID of the script element that contains the template.

C#
public string ConnectionTemplateId { get; set; }

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent ConnectionTemplateView { get; set; }

Enables or disables the configuration.

C#
public bool? Enabled { get; set; }

Specifies if the shapes and connections can be removed.

C#
public bool? Remove { get; set; }

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

C#
public string ShapeTemplate { get; set; }

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string ShapeTemplateHandler { get; set; }

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item. This option expects the ID of the script element that contains the template.

C#
public string ShapeTemplateId { get; set; }

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent ShapeTemplateView { get; set; }

Represents a collection of templates defined for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

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>