Kendo UI DiagramShapeConnector TagHelper DiagramShapeConnectorTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("connector", ParentTag = "connectors", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("hover", new string[] { "fill", "stroke" })]
[SuppressTagRendering]
public class DiagramShapeConnectorTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseDiagramShapeConnectorTagHelper
Implements:
Inherited Members
Example:
@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 Tags
Constructors
Initializes a new instance of the DiagramShapeConnectorTagHelper class.
public DiagramShapeConnectorTagHelper()
Properties
The connector description.
public string Description { get; set; }
Defines the fill options of the shape connectors.
[HtmlAttributeName("fill")]
public string FillValue { 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.
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.).
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.
public string Position { get; set; }
Defines the stroke options of the shape connectors.
[HtmlAttributeName("stroke")]
public string StrokeValue { 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.