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

Kendo UI from TagHelper ChartSeriesLabelsFromSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: 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-from background="#ffcc00"></chart-series-labels-from>
            </labels>
        </series-item>
    </series>
</kendo-chart>

Constructors

Initializes a new instance of the ChartSeriesLabelsFromSettingsTagHelper class.

C#
public ChartSeriesLabelsFromSettingsTagHelper()

Properties

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

C#
public string Background { get; set; }

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

C#
public string BackgroundHandler { get; set; }

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

C#
public string Color { get; set; }

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

C#
public string ColorHandler { get; set; }

The font style of the from labels.

C#
public string Font { get; set; }

The font style of the from labels.

C#
public string FontHandler { get; set; }

The format of the from labels. Uses kendo.format.

C#
public string Format { get; set; }

The format of the from labels. Uses kendo.format.

C#
public string FormatHandler { get; set; }

Specifies the position of the "from" labels.

C#
public ChartSeriesLabelsPosition? Position { get; set; }

Specifies the position of the "from" labels.

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

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

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

C#
public string TemplateId { get; set; }

Configures the templates for the ChartSeriesLabelsFromSettings.

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

Implements: ITemplateComponent.Templates

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.

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

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

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>