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

Kendo UI DiagramShapeConnector TagHelper DiagramShapeConnectorTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("connector", ParentTag = "connectors", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("hover", new string[] { "fill", "stroke" })]
[SuppressTagRendering]
public class DiagramShapeConnectorTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseDiagramShapeConnectorTagHelper

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-diagram name="diagram">
    <shapes>
        <shape>
            <connectors>
                <connector name="customConnector" description="This is a custom connector." />
            </connectors>
        </shape>
    </shapes>
</kendo-diagram>

Child Tagsfillhoverstroke

Constructors

Initializes a new instance of the DiagramShapeConnectorTagHelper class.

C#
public DiagramShapeConnectorTagHelper()

Properties

The connector description.

C#
public string Description { get; set; }

Defines the fill options of the shape connectors.

C#
[HtmlAttributeName("fill")]
public string FillValue { get; set; }

Defines the height of the shape connectors.

C#
public double? Height { get; set; }

The connector name. The predefined names are: "top" - top connector; "right" - right connector; "bottom" - bottom connector; "bottomRight" - bottom right connector; "left" - left connector or "auto" - auto connector.

C#
public string Name { get; set; }

Defines the offset applied to the connector position. The offset pushes the connector away from the shape edge by the specified number of pixels in the direction appropriate for the connector's position (e.g., upward for "top", downward for "bottom", etc.).

C#
public double? Offset { get; set; }

The function that positions the connector. The function is passed a shape as parameter and should return a kendo.dataviz.diagram.Point indicating where the connector should be placed.

C#
public string Position { get; set; }

Defines the stroke options of the shape connectors.

C#
[HtmlAttributeName("stroke")]
public string StrokeValue { get; set; }

Defines the width of the shape connectors.

C#
public double? Width { 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>