Kendo UI title TagHelper ChartTitleSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("chart-title", ParentTag = "kendo-chart", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("chart-title", ParentTag = "kendo-sparkline", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("chart-title", ParentTag = "kendo-stockchart", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartTitleSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChartTitleSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<chart-title align="ChartTextAlignment.Center"></chart-title>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartTitleSettingsTagHelper class.
public ChartTitleSettingsTagHelper()
Properties
Specifies the text alignment.
public ChartTextAlignment? 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 accessible description of the Chart. The description is announced by screen readers when the Chart is focused.
public string Description { get; set; }
Specifies the title position.
public ChartTitlePosition? Position { get; set; }
The text of the chart 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.