Kendo UI legendItem TagHelper ChartSeriesDefaultsLegendItemSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("legend-item", ParentTag = "series-defaults", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("area", new string[] { "highlight", "line", "markers" })]
[SuppressTagRendering]
public class ChartSeriesDefaultsLegendItemSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChartSeriesDefaultsLegendItemSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<series-defaults>
<legend-item>
<area />
</legend-item>
</series-defaults>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartSeriesDefaultsLegendItemSettingsTagHelper class.
public ChartSeriesDefaultsLegendItemSettingsTagHelper()
Properties
Sets the type of the legend items. The default value is based on the series type.The supported values are: "line"—the legend items are rendered as a line. This is the default value for line charts. or "area"—the legend items are rendered as a filled rectangle. This is the default value for area charts..
public string Type { get; set; }
A function that can be used to create a custom visual for the legend items. The available argument fields are: options—The item options.; createVisual—A function for getting the default visual.; series—The item series. or pointIndex—The index of the point in the series. Available for the Pie, Donut, and Funnel series..
public string Visual { 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.