Kendo UI title TagHelper ChartLegendTitleSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("title", ParentTag = "chart-legend", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartLegendTitleSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChartLegendTitleSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<chart-legend>
<title align="center"></title>
</chart-legend>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartLegendTitleSettingsTagHelper class.
public ChartLegendTitleSettingsTagHelper()
Properties
The alignment of the title. "center" - the text is aligned to the middle.; "left" - the text is aligned to the left. or "right" - the text is aligned to the right..
public string Align { get; set; }
The background color of the title. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The text color of the title. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The position of the title. "bottom" - the title is positioned on the bottom. or "top" - the title is positioned on the top..
public string Position { get; set; }
The text of the legend title. You can also set the text directly for a title with default options.
public string Text { 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.