Kendo UI label TagHelper ChartXAxisNotesLabelSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("chart-x-axis-notes-label", ParentTag = "notes", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { })]
[SuppressTagRendering]
public class ChartXAxisNotesLabelSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseChartXAxisNotesLabelSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<x-axis>
<x-axis-item>
<notes>
<chart-x-axis-notes-label background="#ffcc00"></chart-x-axis-notes-label>
</notes>
</x-axis-item>
</x-axis>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartXAxisNotesLabelSettingsTagHelper class.
public ChartXAxisNotesLabelSettingsTagHelper()
Properties
The background color of the label. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The text color of the label. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The format used to display the notes label. Uses kendo.format. Contains one placeholder ("{0}") which represents the axis value.
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..
public ChartNoteLabelPosition? Position { get; set; }
The rotation angle of the label. By default the label are not rotated.
public double? Rotation { get; set; }
The template which renders the labels.The fields which can be used in the template are: value - the axis value.
public string Template { get; set; }
The template which renders the labels.The fields which can be used in the template are: value - the axis value. 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 labels.The fields which can be used in the template are: value - the axis value. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the ChartXAxisNotesLabelSettings.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders the labels.The fields which can be used in the template are: value - the axis value. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { 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.