Kendo UI to TagHelper ChartSeriesLabelsToSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("chart-series-labels-to", ParentTag = "labels", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartSeriesLabelsToSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseChartSeriesLabelsToSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<series>
<series-item>
<labels>
<chart-series-labels-to background="#ffcc00"></chart-series-labels-to>
</labels>
</series-item>
</series>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartSeriesLabelsToSettingsTagHelper class.
public ChartSeriesLabelsToSettingsTagHelper()
Properties
The background color of the to labels. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The background color of the to labels. Accepts a valid CSS color string, including hex and rgb.
public string BackgroundHandler { get; set; }
The text color of the to labels. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The text color of the to labels. Accepts a valid CSS color string, including hex and rgb.
public string ColorHandler { get; set; }
The font style of the to labels.
public string FontHandler { get; set; }
The format of the to labels. Uses kendo.format.Format placeholders: {0} - the value.
public string Format { get; set; }
The format of the to labels. Uses kendo.format.Format placeholders: {0} - the value.
public string FormatHandler { get; set; }
Specifies the position of the "to" labels.
public ChartSeriesLabelsPosition? Position { get; set; }
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values..
public string Template { get; set; }
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values.. 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 chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values.. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the ChartSeriesLabelsToSettings.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values.. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
If set to true the chart will display the series to labels. By default chart series to labels are not displayed.
public bool? Visible { get; set; }
If set to true the chart will display the series to labels. By default chart series to labels are not displayed.
public string VisibleHandler { 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.