Kendo UI legend TagHelper SankeyLegendSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("legend", ParentTag = "kendo-sankey", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "item", "labels", "margin", "padding", "title" })]
[SuppressTagRendering]
public class SankeyLegendSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseSankeyLegendSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-sankey name="sankey">
<legend align="LabelAlign.Center"></legend>
<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"/>
</links>
</data>
</kendo-sankey>
Child Tags
Constructors
Initializes a new instance of the SankeyLegendSettingsTagHelper class.
public SankeyLegendSettingsTagHelper()
Properties
The alignment of the legend label.
public LabelAlign? Align { get; set; }
The background color of the legend.
public string Background { get; set; }
The X offset of the Sankey legend. The offset is relative to the default position of the legend. For instance, a value of 20 will move the legend 20 pixels to the right of its initial position. A negative value will move the legend to the left of its current position.
public double? OffsetX { get; set; }
The Y offset of the Sankey legend. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels down from its initial position. A negative value will move the legend upwards from its current position.
public double? OffsetY { get; set; }
The position of the label.
public Orientation? Orientation { get; set; }
The position of the label.
public LegendPosition? Position { get; set; }
The spacing between the labels in pixels when the legend.orientation is "horizontal".
public double? Spacing { get; set; }
If set to false the Sankey will not display the legend.
public bool? Visible { 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.