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

Kendo UI label TagHelper ChartValueAxisNotesLabelSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("chart-value-axis-notes-label", ParentTag = "notes", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { })]
[SuppressTagRendering]
public class ChartValueAxisNotesLabelSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseChartValueAxisNotesLabelSettingsTagHelper

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">
    <value-axis>
        <value-axis-item>
            <notes>
                <chart-value-axis-notes-label background="#ff0000"></chart-value-axis-notes-label>
            </notes>
        </value-axis-item>
    </value-axis>
</kendo-chart>

Child Tagsborder

Constructors

Initializes a new instance of the ChartValueAxisNotesLabelSettingsTagHelper class.

C#
public ChartValueAxisNotesLabelSettingsTagHelper()

Properties

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

C#
public string Background { get; set; }

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

C#
public string Color { get; set; }

The font style of the label.

C#
public string Font { get; set; }

The format used to display the notes label. Uses kendo.format. Contains one placeholder ("{0}") which represents the axis value.

C#
public string Format { get; set; }

The position of the labels. "inside" - the label is positioned inside of the icon. or "outside" - the label is positioned outside of the icon..

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

The rotation angle of the label. By default the label are not rotated.

C#
public double? Rotation { get; set; }

The template which renders the labels.The fields which can be used in the template are: value - the value value.

C#
public string Template { get; set; }

The template which renders the labels.The fields which can be used in the template are: value - the value value. 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 labels.The fields which can be used in the template are: value - the value value. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

Configures the templates for the ChartValueAxisNotesLabelSettings.

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

Implements: ITemplateComponent.Templates

The template which renders the labels.The fields which can be used in the template are: value - the value value. 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 value axis notes label. By default the value axis notes label are visible.

C#
public bool? Visible { 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>