Kendo UI labels TagHelper ChartLegendLabelsSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("labels", ParentTag = "chart-legend", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("chart-legend-labels-margin", new string[] { "chart-legend-labels-padding" })]
[SuppressTagRendering]
public class ChartLegendLabelsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseChartLegendLabelsSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<chart-legend>
<labels color="#ff0000"></labels>
</chart-legend>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartLegendLabelsSettingsTagHelper class.
public ChartLegendLabelsSettingsTagHelper()
Properties
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
public string Font { get; set; }
The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..
public string Template { get; set; }
The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the ChartLegendLabelsSettings.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { 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.
Serializes the defined templates.