Kendo UI SankeyDataSettingsLink TagHelper SankeyDataSettingsLinkTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("link", ParentTag = "links", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("highlight", new string[] { })]
[SuppressTagRendering]
public class SankeyDataSettingsLinkTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseSankeyDataSettingsLinkTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-sankey name="sankey">
<data>
<nodes>
<node id="1">
<label text="Source"></label>
</node>
<node id="2">
<label text="Target"></label>
</node>
</nodes>
<links>
<link source-id="1" target-id="2" value="12" color="#ff0000"></link>
</links>
</data>
</kendo-sankey>
Child Tags
Constructors
Initializes a new instance of the SankeyDataSettingsLinkTagHelper class.
public SankeyDataSettingsLinkTagHelper()
Properties
The color of the link. The color is used when the colorType option is set to static. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
Defines the color type of the link.
public LinkColorType? ColorType { get; set; }
The source node ID of the link. The source node is the node from which the link originates.
public double? SourceId { get; set; }
The target node ID of the link. The target node is the node to which the link points.
public double? TargetId { 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.