Kendo UI from TagHelper ChartSeriesLabelsFromSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("chart-series-labels-from", ParentTag = "labels", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartSeriesLabelsFromSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseChartSeriesLabelsFromSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<series>
<series-item>
<labels>
<chart-series-labels-from background="#ffcc00"></chart-series-labels-from>
</labels>
</series-item>
</series>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartSeriesLabelsFromSettingsTagHelper class.
public ChartSeriesLabelsFromSettingsTagHelper()
Properties
The background color of the from labels. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The background color of the from labels. Accepts a valid CSS color string, including hex and rgb.
public string BackgroundHandler { get; set; }
The text color of the from labels. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The text color of the from labels. Accepts a valid CSS color string, including hex and rgb.
public string ColorHandler { get; set; }
The font style of the from labels.
public string FontHandler { get; set; }
The format of the from labels. Uses kendo.format.
public string FormatHandler { get; set; }
Specifies the position of the "from" labels.
public ChartSeriesLabelsPosition? Position { get; set; }
Specifies the position of the "from" labels.
public string PositionHandler { get; set; }
The template which renders the chart series from 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 from 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 from 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 ChartSeriesLabelsFromSettings.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders the chart series from 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 from labels. By default chart series from labels are not displayed.
public bool? Visible { get; set; }
If set to true the chart will display the series from labels. By default chart series from 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.