New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI to TagHelper ChartSeriesLabelsToSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@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>

Constructors

Initializes a new instance of the ChartSeriesLabelsToSettingsTagHelper class.

C#
public ChartSeriesLabelsToSettingsTagHelper()

Properties

The background color of the to labels. Accepts a valid CSS color string, including hex and rgb.

C#
public string Background { get; set; }

The background color of the to labels. Accepts a valid CSS color string, including hex and rgb.

C#
public string BackgroundHandler { get; set; }

The text color of the to labels. Accepts a valid CSS color string, including hex and rgb.

C#
public string Color { get; set; }

The text color of the to labels. Accepts a valid CSS color string, including hex and rgb.

C#
public string ColorHandler { get; set; }

The font style of the to labels.

C#
public string Font { get; set; }

The font style of the to labels.

C#
public string FontHandler { get; set; }

The format of the to labels. Uses kendo.format.Format placeholders: {0} - the value.

C#
public string Format { get; set; }

The format of the to labels. Uses kendo.format.Format placeholders: {0} - the value.

C#
public string FormatHandler { get; set; }

Specifies the position of the "to" labels.

C#
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..

C#
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.

C#
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.

C#
public string TemplateId { get; set; }

Configures the templates for the ChartSeriesLabelsToSettings.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

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.

C#
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.

C#
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.

C#
public string VisibleHandler { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serializes the defined templates.

C#
public Dictionary<string, object> SerializeTemplates()
Returns:

Dictionary<string, object>