SankeyTagHelper
Kendo UI Sankey TagHelper SankeyTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-sankey")]
[RestrictChildren("data", new string[] { "labels", "legend", "links", "messages", "nodes", "title", "tooltip" })]
public class SankeyTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseSankeyTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-sankey name="sankey" theme="sass">
<legend position="LegendPosition.Bottom"/>
<links color-type="LinkColorType.Source"/>
<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">
</link>
</links>
</data>
<tooltip delay="100" follow-pointer="true"/>
</kendo-sankey>
Child Tags
Constructors
Initializes a new instance of the SankeyTagHelper class.
Properties
If set to true, the Sankey will not automatically reorder the nodes to reduce the number of links that cross over each other.
public bool? DisableAutoLayout { get; set; }
If set to true, the Sankey keyboard navigation will be disabled.
public bool? DisableKeyboardNavigation { get; set; }
The name of the JavaScript function that will handle the linkClick event. Fires when the user clicks a link.
public string OnLinkClick { get; set; }
The name of the JavaScript function that will handle the linkEnter event. Fires when the user enters a link. Similar to the mouseenter event.
public string OnLinkEnter { get; set; }
The name of the JavaScript function that will handle the linkLeave event. Fires when the user leaves a link. Similar to the mouseleave event.
public string OnLinkLeave { get; set; }
The name of the JavaScript function that will handle the nodeClick event. Fires when the user clicks a node.
public string OnNodeClick { get; set; }
The name of the JavaScript function that will handle the nodeEnter event. Fires when the user enters a node. Similar to the mouseenter event.
public string OnNodeEnter { get; set; }
The name of the JavaScript function that will handle the nodeLeave event. Fires when the user leaves a node. Similar to the mouseleave event.
public string OnNodeLeave { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: